Title: Option to print help to std out · Issue #188 · google/python-fire · GitHub
Open Graph Title: Option to print help to std out · Issue #188 · google/python-fire
X Title: Option to print help to std out · Issue #188 · google/python-fire
Description: Thanks for creating Fire. It's a fantastic argument parsing tool. A minor request: I prefer my help strings to be printed to stdout instead of a console like less. When the output is sent to a less-like program you can't reference the sc...
Open Graph Description: Thanks for creating Fire. It's a fantastic argument parsing tool. A minor request: I prefer my help strings to be printed to stdout instead of a console like less. When the output is sent to a less...
X Description: Thanks for creating Fire. It's a fantastic argument parsing tool. A minor request: I prefer my help strings to be printed to stdout instead of a console like less. When the output is sent to a ...
Opengraph URL: https://github.com/google/python-fire/issues/188
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Option to print help to std out","articleBody":"Thanks for creating Fire. It's a fantastic argument parsing tool.\r\n\r\nA minor request: I prefer my help strings to be printed to stdout instead of a console like `less`. When the output is sent to a `less`-like program you can't reference the script argument information when trying to type your next command.\r\n\r\nThe naive way to allow this option is adding a switch so the user can choose to send information console package or to stdout (code below).\r\n\r\nhttps://github.com/google/python-fire/blob/d77453938a4b7a5a2bb71d9cb40397ee8bbc2e0a/fire/core.py#L171\r\nto something like\r\n```\r\nif print_std:\r\n print(text, file=out)\r\nelse:\r\n console_io.More(\r\n```\r\n\r\nI don't see an elegant way to set `print_std` in your source code since you are not accepting contributions to your console package and the `Display` function is not a method of the Fire class. I don't see a straightforward way to have the user set this display option. Obviously, you know the code better than me so you may know a good way to add this option.\r\n\r\nI am using fire version 0.2.1 and have seen this behavior with Ubuntu 16.04 and 18.04.\r\n\r\nThank you for your time!","author":{"url":"https://github.com/cbrochtrup","@type":"Person","name":"cbrochtrup"},"datePublished":"2019-08-21T15:00:15Z","url":"https://github.com/google/python-fire/issues/188"}
| 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:3bc48c42-b5c3-a812-82f9-7a98b94ec2db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B142:2B3CBD:A2B816:D2E778:6AFFE7A0 |
| html-safe-nonce | 6c52c7d5d30d1d6606c551898b8a26ceb60f7f9abc4914b8de2b94257a7182b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQyOjJCM0NCRDpBMkI4MTY6RDJFNzc4OjZBRkZFN0EwIiwidmlzaXRvcl9pZCI6IjM1Njg3NzU0MzQyNzMyODYwNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f3497ede9f6dd52eca6e8880904f221910458f6d9c2229afd3c000c0bc3afa71 |
| hovercard-subject-tag | issue:483475821 |
| 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/188/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10e9491308f1983ab04f3597f56139b618c608c50974e27b0eb8207039619904/google/python-fire/issues/188 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10e9491308f1983ab04f3597f56139b618c608c50974e27b0eb8207039619904/google/python-fire/issues/188 |
| og:image:alt | Thanks for creating Fire. It's a fantastic argument parsing tool. A minor request: I prefer my help strings to be printed to stdout instead of a console like less. When the output is sent to a less... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cbrochtrup |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width