Title: Optional and required flags are swapped in the "Usage" message · Issue #315 · google/python-fire · GitHub
Open Graph Title: Optional and required flags are swapped in the "Usage" message · Issue #315 · google/python-fire
X Title: Optional and required flags are swapped in the "Usage" message · Issue #315 · google/python-fire
Description: Running python script.py command import fire class Example: def command(self, *, arg1: bool, arg2: bool = True, arg3: bool = False): pass if __name__ == '__main__': fire.Fire(Example) Prints ERROR: Missing required flags: {'arg1'} Usage:...
Open Graph Description: Running python script.py command import fire class Example: def command(self, *, arg1: bool, arg2: bool = True, arg3: bool = False): pass if __name__ == '__main__': fire.Fire(Example) Prints ERROR:...
X Description: Running python script.py command import fire class Example: def command(self, *, arg1: bool, arg2: bool = True, arg3: bool = False): pass if __name__ == '__main__': fire.Fire(Example) Print...
Opengraph URL: https://github.com/google/python-fire/issues/315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optional and required flags are swapped in the \"Usage\" message","articleBody":"Running python script.py command\r\n\r\n\r\n```\r\nimport fire\r\n\r\n\r\nclass Example:\r\n\r\n def command(self, *, arg1: bool, arg2: bool = True, arg3: bool = False):\r\n pass\r\n\r\n\r\nif __name__ == '__main__':\r\n fire.Fire(Example)\r\n\r\n```\r\n\r\nPrints\r\n\r\n```\r\nERROR: Missing required flags: {'arg1'}\r\nUsage: download.py command \u003cflags>\r\n optional flags: --arg1\r\n required flags: --arg2 | --arg3\r\n```\r\n\r\nThe \"ERROR\" message correctly points that arg1 is required, but the \"Usage\" message is swapping required and optional arguments.","author":{"url":"https://github.com/Mirandatz","@type":"Person","name":"Mirandatz"},"datePublished":"2021-02-04T00:00:20Z","url":"https://github.com/google/python-fire/issues/315"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87e6dd1b-d1c0-dfb9-d2cc-c9ac6969f8df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2F8:D33AC:345AA:466F7:6B001A2B |
| html-safe-nonce | ac477f30239e4ada3cdc256d20712650c0732232b160ddb27348bda813305178 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkY4OkQzM0FDOjM0NUFBOjQ2NkY3OjZCMDAxQTJCIiwidmlzaXRvcl9pZCI6Ijc3MzY1Njg5MDMyNTc1NjE2NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 659d1a04779024158b6a87ff69a4107f88f5825543d4bd38277658fec51a38c0 |
| hovercard-subject-tag | issue:800806805 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/python-fire/315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/403d9da7d6753546d22f52d15723e83ef01c5eaa7d6c3db62d1eda7298e44429/google/python-fire/issues/315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/403d9da7d6753546d22f52d15723e83ef01c5eaa7d6c3db62d1eda7298e44429/google/python-fire/issues/315 |
| og:image:alt | Running python script.py command import fire class Example: def command(self, *, arg1: bool, arg2: bool = True, arg3: bool = False): pass if __name__ == '__main__': fire.Fire(Example) Prints ERROR:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Mirandatz |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/google/python-fire git https://github.com/google/python-fire.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 82729529 |
| octolytics-dimension-repository_nwo | google/python-fire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82729529 |
| octolytics-dimension-repository_network_root_nwo | google/python-fire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width