Title: use --help or -h to show comment info · Issue #26 · google/python-fire · GitHub
Open Graph Title: use --help or -h to show comment info · Issue #26 · google/python-fire
X Title: use --help or -h to show comment info · Issue #26 · google/python-fire
Description: Is there any way that can use "-h" or "--help" to show comment of a function or class. example: #!/usr/bin/env python # -*- coding: utf-8 -*- """ :authors: wanglichao :version: 1.0 of 2017-03-20 """ import fire def hello(name): """this i...
Open Graph Description: Is there any way that can use "-h" or "--help" to show comment of a function or class. example: #!/usr/bin/env python # -*- coding: utf-8 -*- """ :authors: wanglichao :version: 1.0 of 2017-03-20 ""...
X Description: Is there any way that can use "-h" or "--help" to show comment of a function or class. example: #!/usr/bin/env python # -*- coding: utf-8 -*- """ :authors: wangli...
Opengraph URL: https://github.com/google/python-fire/issues/26
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"use --help or -h to show comment info","articleBody":"Is there any way that can use \"-h\" or \"--help\" to show comment of a function or class.\r\n\r\nexample:\r\n\r\n```python\r\n#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\n\"\"\"\r\n:authors: wanglichao\r\n:version: 1.0 of 2017-03-20\r\n\r\n\"\"\"\r\n\r\nimport fire\r\n\r\n\r\ndef hello(name):\r\n \"\"\"this is a hello test1\r\n \"\"\"\r\n return 'Hello {name}!'.format(name=name)\r\n\r\n\r\ndef hello2(name):\r\n \"\"\"this is a hello test2\r\n \"\"\"\r\n return 'Hello {name}!'.format(name=name)\r\n\r\n\r\nif __name__ == '__main__':\r\n fire.Fire()\r\n```\r\n\r\nexpect result:\r\n```\r\npython hello.py -- --help\r\n\r\nUsage: hello.py [OPTIONS] COMMAND [ARGS]...\r\n authors: wanglichao\r\n version: 1.0 of 2017-03-20\r\n\r\nOptions:\r\n -- --help\r\n -- --interactive\r\n -- --trace\r\n -- --verbose\r\n\r\nCommand:\r\n fire inner command\r\n hello this is a hello test1\r\n hello2 this is a hello test2\r\n```","author":{"url":"https://github.com/xidianwlc","@type":"Person","name":"xidianwlc"},"datePublished":"2017-03-20T02:25:57Z","url":"https://github.com/google/python-fire/issues/26"}
| 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:1d3d5d1b-8c01-837e-8751-53095319cfbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2B6:609A0:3996C91:4C39459:6B004902 |
| html-safe-nonce | b89b02c5260a6c6be62c54b51d2bebe4b5f9c62af40da1c9eddeea241c8b0259 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkI2OjYwOUEwOjM5OTZDOTE6NEMzOTQ1OTo2QjAwNDkwMiIsInZpc2l0b3JfaWQiOiI4NDMzMDQxODUyMjQzOTIxMTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dbde1f2d566182762463667fe7f32200a201057c3f4b20e5e57c0fdf76c23640 |
| hovercard-subject-tag | issue:215317699 |
| 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/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9473c817bcda66237f32de7f7ae68473ff579c69b65207c44c87968232889e27/google/python-fire/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9473c817bcda66237f32de7f7ae68473ff579c69b65207c44c87968232889e27/google/python-fire/issues/26 |
| og:image:alt | Is there any way that can use "-h" or "--help" to show comment of a function or class. example: #!/usr/bin/env python # -*- coding: utf-8 -*- """ :authors: wanglichao :version: 1.0 of 2017-03-20 ""... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xidianwlc |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width