Title: Feature request short arguments in help text · Issue #317 · google/python-fire · GitHub
Open Graph Title: Feature request short arguments in help text · Issue #317 · google/python-fire
X Title: Feature request short arguments in help text · Issue #317 · google/python-fire
Description: Saw short arguments were added in #141, which looks great! I was wondering if it'd be possible to include the short args in help text too? I was thinking something like, given: # foo.py import fire def func(foo=False, bar='bar', baz='dup...
Open Graph Description: Saw short arguments were added in #141, which looks great! I was wondering if it'd be possible to include the short args in help text too? I was thinking something like, given: # foo.py import fire...
X Description: Saw short arguments were added in #141, which looks great! I was wondering if it'd be possible to include the short args in help text too? I was thinking something like, given: # foo.py import ...
Opengraph URL: https://github.com/google/python-fire/issues/317
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request short arguments in help text","articleBody":"Saw short arguments were added in #141, which looks great!\r\n \r\nI was wondering if it'd be possible to include the short args in help text too?\r\n\r\nI was thinking something like, given:\r\n```python\r\n# foo.py\r\nimport fire\r\n\r\ndef func(foo=False, bar='bar', baz='dupe'):\r\n pass\r\n\r\nif __name__ == '__main__':\r\n fire.Fire(func)\r\n```\r\nThe output could change like this:\r\n```diff\r\n# python foo.py --help\r\n FLAGS\r\n- --foo=FOO\r\n+ -f, --foo=FOO\r\n Default: False\r\n --bar=BAR\r\n Default: 'bar'\r\n --baz=BAZ\r\n Default: 'dupe'\r\n```\r\nI'd be happy to try and pr this myself if you think it's worth adding?\r\n","author":{"url":"https://github.com/ConorSheehan1","@type":"Person","name":"ConorSheehan1"},"datePublished":"2021-02-04T22:38:03Z","url":"https://github.com/google/python-fire/issues/317"}
| 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:16635273-96fe-adaa-dffc-b059210edfcd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD6E:2B9B04:2D83B2C:3C1CC5C:6B00223A |
| html-safe-nonce | b6d2031e441635ecf1263190e71a98353b48859e083a9207f316020b9b952b13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDZFOjJCOUIwNDoyRDgzQjJDOjNDMUNDNUM6NkIwMDIyM0EiLCJ2aXNpdG9yX2lkIjoiNzQ2MjU4Nzg2NzA4OTM0NzEzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbcfa1a8d1dd7d09535118a1150faaeafc947e0d36ca7ffb52305eebdf9a6ace |
| hovercard-subject-tag | issue:801688510 |
| 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/317/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a33c08a25fcd3c3c15ce009b16e1f29a1eac2a59c1055bacc5af6715eb5bbaf8/google/python-fire/issues/317 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a33c08a25fcd3c3c15ce009b16e1f29a1eac2a59c1055bacc5af6715eb5bbaf8/google/python-fire/issues/317 |
| og:image:alt | Saw short arguments were added in #141, which looks great! I was wondering if it'd be possible to include the short args in help text too? I was thinking something like, given: # foo.py import fire... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ConorSheehan1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width