René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3bc48c42-b5c3-a812-82f9-7a98b94ec2db
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB142:2B3CBD:A2B816:D2E778:6AFFE7A0
html-safe-nonce6c52c7d5d30d1d6606c551898b8a26ceb60f7f9abc4914b8de2b94257a7182b4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQyOjJCM0NCRDpBMkI4MTY6RDJFNzc4OjZBRkZFN0EwIiwidmlzaXRvcl9pZCI6IjM1Njg3NzU0MzQyNzMyODYwNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf3497ede9f6dd52eca6e8880904f221910458f6d9c2229afd3c000c0bc3afa71
hovercard-subject-tagissue:483475821
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/python-fire/188/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10e9491308f1983ab04f3597f56139b618c608c50974e27b0eb8207039619904/google/python-fire/issues/188
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10e9491308f1983ab04f3597f56139b618c608c50974e27b0eb8207039619904/google/python-fire/issues/188
og:image:altThanks 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecbrochtrup
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/google/python-fire git https://github.com/google/python-fire.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id82729529
octolytics-dimension-repository_nwogoogle/python-fire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82729529
octolytics-dimension-repository_network_root_nwogoogle/python-fire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/google/python-fire/issues/188#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F188
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F188
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=google%2Fpython-fire
Reloadhttps://github.com/google/python-fire/issues/188
Reloadhttps://github.com/google/python-fire/issues/188
Reloadhttps://github.com/google/python-fire/issues/188
googlehttps://github.com/google
python-firehttps://github.com/google/python-fire
Codehttps://github.com/google/python-fire
Issues146 (146)https://github.com/google/python-fire/issues
Pull requests85 (85)https://github.com/google/python-fire/pulls
Actionshttps://github.com/google/python-fire/actions
Projectshttps://github.com/google/python-fire/projects
Security and qualityhttps://github.com/google/python-fire/security
Insightshttps://github.com/google/python-fire/insights
https://github.com/google/python-fire
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/188
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/188
#337https://github.com/google/python-fire/pull/337
Option to print help to std outhttps://github.com/google/python-fire/issues/188#top
#337https://github.com/google/python-fire/pull/337
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/cbrochtrup
cbrochtruphttps://github.com/cbrochtrup
on Aug 21, 2019https://github.com/google/python-fire/issues/188#issue-483475821
python-fire/fire/core.pyhttps://github.com/google/python-fire/blob/d77453938a4b7a5a2bb71d9cb40397ee8bbc2e0a/fire/core.py#L171
d774539https://github.com/google/python-fire/commit/d77453938a4b7a5a2bb71d9cb40397ee8bbc2e0a
Nexthttps://github.com/google/python-fire/issues/188?timeline_page=1
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Aug 24, 2019https://github.com/google/python-fire/issues/188#issuecomment-524574308
dbieberhttps://github.com/dbieber
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Aug 24, 2019https://github.com/google/python-fire/issues/188#event-2581583825
https://github.com/nikking
nikkinghttps://github.com/nikking
on Oct 13, 2019https://github.com/google/python-fire/issues/188#issuecomment-541428736
https://www.git-scm.com/docs/git/1.7.4https://www.git-scm.com/docs/git/1.7.4
https://www.git-scm.com/docs/git-confighttps://www.git-scm.com/docs/git-config
https://github.com/jaredtrog
jaredtroghttps://github.com/jaredtrog
on Feb 17, 2020https://github.com/google/python-fire/issues/188#issuecomment-587133488
@dbieberhttps://github.com/dbieber
@cbrochtruphttps://github.com/cbrochtrup
@nikkinghttps://github.com/nikking
https://github.com/nlarusstone
nlarusstonehttps://github.com/nlarusstone
on Mar 6, 2020https://github.com/google/python-fire/issues/188#issuecomment-595915805
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 6, 2020https://github.com/google/python-fire/issues/188#issuecomment-595923798
Dynamically dispatch function but do not print result #231https://github.com/google/python-fire/issues/231
Option to print help to std out #188https://github.com/google/python-fire/issues/188
Support the option to provide a user-defined output formatter #74https://github.com/google/python-fire/issues/74
Brainstorm potential Fire CLI configurations #98https://github.com/google/python-fire/issues/98
https://github.com/cbrochtrup
cbrochtruphttps://github.com/cbrochtrup
on Mar 6, 2020https://github.com/google/python-fire/issues/188#issuecomment-595947376
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 6, 2020https://github.com/google/python-fire/issues/188#issuecomment-595952965
https://github.com/cbrochtrup
cbrochtruphttps://github.com/cbrochtrup
on Mar 6, 2020https://github.com/google/python-fire/issues/188#issuecomment-595969708
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 7, 2020https://github.com/google/python-fire/issues/188#issuecomment-596026596
https://github.com/nlarusstone
nlarusstonehttps://github.com/nlarusstone
on Mar 8, 2020https://github.com/google/python-fire/issues/188#issuecomment-596151510
https://github.com/jaredtrog
jaredtroghttps://github.com/jaredtrog
on Mar 9, 2020https://github.com/google/python-fire/issues/188#issuecomment-596315742
@dbieberhttps://github.com/dbieber
https://github.com/nlarusstone
nlarusstonehttps://github.com/nlarusstone
on Mar 9, 2020https://github.com/google/python-fire/issues/188#issuecomment-596561795
@jaredtroghttps://github.com/jaredtrog
https://github.com/jaredtrog
jaredtroghttps://github.com/jaredtrog
on Mar 9, 2020https://github.com/google/python-fire/issues/188#issuecomment-596587303
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 9, 2020https://github.com/google/python-fire/issues/188#issuecomment-596684905
#74https://github.com/google/python-fire/issues/74
https://github.com/nlarusstone
nlarusstonehttps://github.com/nlarusstone
on Mar 11, 2020https://github.com/google/python-fire/issues/188#issuecomment-597758742
https://github.com/albertotb
albertotbhttps://github.com/albertotb
on Mar 12, 2020https://github.com/google/python-fire/issues/188#issuecomment-598149707
#231https://github.com/google/python-fire/issues/231
#231https://github.com/google/python-fire/issues/231
https://github.com/fabioz
fabiozhttps://github.com/fabioz
on May 20, 2020https://github.com/google/python-fire/issues/188#issuecomment-631419585
https://github.com/pselden
pseldenhttps://github.com/pselden
on Jun 1, 2020https://github.com/google/python-fire/issues/188#issuecomment-636865797
https://github.com/claui
clauihttps://github.com/claui
on Mar 6, 2021https://github.com/google/python-fire/issues/188#issuecomment-791972163
@fabiozhttps://github.com/fabioz
clauihttps://github.com/claui
on Mar 6, 2021https://github.com/google/python-fire/issues/188#event-4417122504
Improve template (see detailed commit message)https://github.com/claui/cookiecutter-python-package/commit/c6a4b6d388a8281283ff8d42854bd99c83215ada
c6a4b6dhttps://github.com/claui/cookiecutter-python-package/commit/c6a4b6d388a8281283ff8d42854bd99c83215ada
https://github.com/cbrochtrup
cbrochtruphttps://github.com/cbrochtrup
on Apr 15, 2021https://github.com/google/python-fire/issues/188#issuecomment-820611865
similar to thishttps://github.com/google/python-fire/issues/188#issuecomment-541428736
https://github.com/nfultz
nfultzhttps://github.com/nfultz
on Apr 15, 2021https://github.com/google/python-fire/issues/188#issuecomment-820626046
python-fire/fire/console/console_io.pyhttps://github.com/google/python-fire/blob/c3789064e2e161992e3c5a23eb0c47b66072707f/fire/console/console_io.py#L85
c378906https://github.com/google/python-fire/commit/c3789064e2e161992e3c5a23eb0c47b66072707f
https://github.com/cbrochtrup
cbrochtruphttps://github.com/cbrochtrup
on Apr 15, 2021https://github.com/google/python-fire/issues/188#issuecomment-820735288
python-fire/fire/console/console_io.pyhttps://github.com/google/python-fire/blob/c3789064e2e161992e3c5a23eb0c47b66072707f/fire/console/console_io.py#L85
c378906https://github.com/google/python-fire/commit/c3789064e2e161992e3c5a23eb0c47b66072707f
https://github.com/liudonghua123
liudonghua123https://github.com/liudonghua123
on Jun 24, 2022https://github.com/google/python-fire/issues/188#issuecomment-1165098568
@fabiozhttps://github.com/fabioz
https://github.com/rahul286
rahul286https://github.com/rahul286
on Apr 30, 2023https://github.com/google/python-fire/issues/188#issuecomment-1528976874
@fabiozhttps://github.com/fabioz
@liudonghua123https://github.com/liudonghua123
https://github.com/nicos68
nicos68https://github.com/nicos68
on Jul 17, 2023https://github.com/google/python-fire/issues/188#issuecomment-1638107096
https://github.com/liudonghua123
liudonghua123https://github.com/liudonghua123
on Mar 21, 2024https://github.com/google/python-fire/issues/188#issuecomment-2011051214
https://github.com/sharkdp/bat?tab=readme-ov-file#automatic-paginghttps://github.com/sharkdp/bat?tab=readme-ov-file#automatic-paging
https://private-user-images.githubusercontent.com/2276718/314907021-b94e4eea-cd57-4eaa-972a-ef41d7196e06.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUxNTYxNzQsIm5iZiI6MTc5NTE1NTg3NCwicGF0aCI6Ii8yMjc2NzE4LzMxNDkwNzAyMS1iOTRlNGVlYS1jZDU3LTRlYWEtOTcyYS1lZjQxZDcxOTZlMDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjBUMDYyNDM0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWE2M2RiM2YxNGY0Y2E5NzQxMzVhYWU0OGE4MjJmMWU2OGIyY2E5OWZhOWMyNjM2MTk0NTZkMjQ1N2U0YTQ2MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.3IiytGRaSc4FemDu2w4KYofXCdUwArsheYLN-W9_wJ0
https://github.com/shaharevinced
shaharevincedhttps://github.com/shaharevinced
on Jan 12, 2025https://github.com/google/python-fire/issues/188#issuecomment-2585652036
https://github.com/anki-code
anki-codehttps://github.com/anki-code
on Mar 20, 2026https://github.com/google/python-fire/issues/188#issuecomment-4098015322
#655https://github.com/google/python-fire/issues/655
Sign up for freehttps://github.com/signup?return_to=https://github.com/google/python-fire/issues/188
Sign in to commenthttps://github.com/login?return_to=https://github.com/google/python-fire/issues/188
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.