René's URL Explorer Experiment


Title: First-character argument flag is undocumented and behaves strangely when colliding with default options · Issue #238 · google/python-fire · GitHub

Open Graph Title: First-character argument flag is undocumented and behaves strangely when colliding with default options · Issue #238 · google/python-fire

X Title: First-character argument flag is undocumented and behaves strangely when colliding with default options · Issue #238 · google/python-fire

Description: Consider the function signature: def main(headless=False): # Construct GUI if not headless: widget.show() app.exec() if __name__ == '__main__': fire.Fire(main) After reading through the user guide for fire, I would expect python myFile -...

Open Graph Description: Consider the function signature: def main(headless=False): # Construct GUI if not headless: widget.show() app.exec() if __name__ == '__main__': fire.Fire(main) After reading through the user guide ...

X Description: Consider the function signature: def main(headless=False): # Construct GUI if not headless: widget.show() app.exec() if __name__ == '__main__': fire.Fire(main) After reading through the use...

Opengraph URL: https://github.com/google/python-fire/issues/238

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"First-character argument flag is undocumented and behaves strangely when colliding with default options","articleBody":"Consider the function signature:\r\n\r\n```\r\ndef main(headless=False):\r\n  # Construct GUI\r\n  if not headless:\r\n    widget.show()\r\n    app.exec()\r\n\r\nif __name__ == '__main__': fire.Fire(main)\r\n```\r\n\r\nAfter reading through the user guide for fire, I would expect `python myFile -h` to produce the help signature for this file. However, it runs the script with `headless = True`.\r\n\r\nWhile in retrospect I suppose this makes sense, I would like some way of telling fire to disallow shortcut flags if they override user-expected options like --[i]nteractive, --[h]elp, etc. In those cases, the user can be forced to say `python myFile --headless` for the desired behavior.\r\n\r\nMoreover, if my script looked like this:\r\n```\r\ndef main(headless=False, hArg=True):\r\n  # Construct GUI\r\n  if not headless:\r\n    widget.show()\r\n    app.exec()\r\n\r\nif __name__ == '__main__': fire.Fire(main)\r\n```\r\nand I ran the same line of code, fire would appropriately err out. This is also acceptable in my opinion.\r\n\r\nMore importantly, the first-character flag behavior should at the very least be documented. I read through https://github.com/google/python-fire/blob/master/docs/guide.md and couldn't find it there.\r\n","author":{"url":"https://github.com/ntjess","@type":"Person","name":"ntjess"},"datePublished":"2020-04-01T00:34:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/238/python-fire/issues/238"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f431737c-f415-a76f-df88-5a580a92169c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8264:2CD26:62B361:916C02:6A4E102E
html-safe-nonceef81cf180911c289812c4c625590c98b9fd1a04150c594b7950ddbab5718f498
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjY0OjJDRDI2OjYyQjM2MTo5MTZDMDI6NkE0RTEwMkUiLCJ2aXNpdG9yX2lkIjoiODExOTUyOTk4ODYxMTI0ODE3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3e5aacb9c4538abfb6bb194f914fcffc6da5e763335c235a9fc37eb9d4c51c7d
hovercard-subject-tagissue:591534285
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/238/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ef30a8632971dff85395fad924e1ef0a9f9eb37d6106de97afb65523beb3d4c4/google/python-fire/issues/238
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef30a8632971dff85395fad924e1ef0a9f9eb37d6106de97afb65523beb3d4c4/google/python-fire/issues/238
og:image:altConsider the function signature: def main(headless=False): # Construct GUI if not headless: widget.show() app.exec() if __name__ == '__main__': fire.Fire(main) After reading through the user guide ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamentjess
hostnamegithub.com
expected-hostnamegithub.com
Nonedf0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6
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
release51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/google/python-fire/issues/238#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F238
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F238
Sign up https://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/238
Reloadhttps://github.com/google/python-fire/issues/238
Reloadhttps://github.com/google/python-fire/issues/238
Please reload this pagehttps://github.com/google/python-fire/issues/238
google https://github.com/google
python-firehttps://github.com/google/python-fire
Notifications https://github.com/login?return_to=%2Fgoogle%2Fpython-fire
Fork 1.5k https://github.com/login?return_to=%2Fgoogle%2Fpython-fire
Star 28.2k https://github.com/login?return_to=%2Fgoogle%2Fpython-fire
Code https://github.com/google/python-fire
Issues 131 https://github.com/google/python-fire/issues
Pull requests 52 https://github.com/google/python-fire/pulls
Actions https://github.com/google/python-fire/actions
Projects https://github.com/google/python-fire/projects
Security and quality 0 https://github.com/google/python-fire/security
Insights https://github.com/google/python-fire/pulse
Code https://github.com/google/python-fire
Issues https://github.com/google/python-fire/issues
Pull requests https://github.com/google/python-fire/pulls
Actions https://github.com/google/python-fire/actions
Projects https://github.com/google/python-fire/projects
Security and quality https://github.com/google/python-fire/security
Insights https://github.com/google/python-fire/pulse
#661https://github.com/google/python-fire/pull/661
First-character argument flag is undocumented and behaves strangely when colliding with default optionshttps://github.com/google/python-fire/issues/238#top
#661https://github.com/google/python-fire/pull/661
bughttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22bug%22
documentationhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22documentation%22
https://github.com/ntjess
ntjesshttps://github.com/ntjess
on Apr 1, 2020https://github.com/google/python-fire/issues/238#issue-591534285
https://github.com/google/python-fire/blob/master/docs/guide.mdhttps://github.com/google/python-fire/blob/master/docs/guide.md
bughttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22bug%22
documentationhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22documentation%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.