René's URL Explorer Experiment


Title: Double digit args prefix not passing properly · Issue #280 · extrabacon/python-shell · GitHub

Open Graph Title: Double digit args prefix not passing properly · Issue #280 · extrabacon/python-shell

X Title: Double digit args prefix not passing properly · Issue #280 · extrabacon/python-shell

Description: Describe the bug Due to logic and variable number using double prefix args (--lt, --ed etc) is required. Python code ` parser = ArgumentParser() parser.add_argument( "--es", type = float, dest = "e_start", action="append", required = Tru...

Open Graph Description: Describe the bug Due to logic and variable number using double prefix args (--lt, --ed etc) is required. Python code ` parser = ArgumentParser() parser.add_argument( "--es", type = float, dest = "e...

X Description: Describe the bug Due to logic and variable number using double prefix args (--lt, --ed etc) is required. Python code ` parser = ArgumentParser() parser.add_argument( "--es", type = float,...

Opengraph URL: https://github.com/extrabacon/python-shell/issues/280

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Double digit args prefix not passing properly","articleBody":"**Describe the bug**\r\nDue to logic and variable number using double prefix args (--lt, --ed etc) is required. \r\n\r\n**Python code**\r\n`\r\nparser = ArgumentParser()\r\nparser.add_argument(\r\n      \"--es\",\r\n      type = float,\r\n      dest = \"e_start\",\r\n      action=\"append\",\r\n      required = True,\r\n      help = \"e_start\"\r\n  )\r\n\r\n  parser.add_argument(\r\n      \"--ee\",\r\n      type = float,\r\n      dest = \"e_end\",\r\n      action=\"append\",\r\n      required = True,\r\n      help = \"e_end\"\r\n  )\r\n\r\n  parser.add_argument(\r\n      \"--eu\",\r\n      type = float,\r\n      dest = \"e_suitei\",\r\n      action=\"append\",\r\n      required = True,\r\n      help = \"e_suitei\"\r\n  )\r\n`\r\n\r\n**Javascript code**\r\n\r\n`return new Promise(async (resolve, reject) =\u003e {\r\n      let arg = [];\r\n      stations.forEach(st =\u003e {\r\n        arg.push(`--es${st.es}`);\r\n        arg.push(`--ee${st.ee}`);\r\n        arg.push(`--eu${st.eu}`);\r\n\r\n      });\r\n\r\n      let options = {\r\n        mode: 'text',\r\n        pythonOptions: ['-u'],\r\n        scriptPath: `${PROJECT_DIR}/src/scripts/algorithm`,\r\n        args: arg,\r\n      };\r\n}`\r\n    \r\n\r\n**Expected behavior**\r\nRun the python script by given args\r\n\r\n**Actual behavior**\r\n\r\nPythonShellError: usage: *.py [-h] --ee LAT --es LON --eu N \r\n0|index  |                    \r\n0|index  | lagrange.py: error: the following arguments are required: --es, --ee, --eu\r\n0|index  |     at PythonShell.parseError (/workspace/node_modules/python-shell/index.js:268:21)\r\n0|index  |     at terminateIfNeeded (/workspace/node_modules/python-shell/index.js:139:32)\r\n0|index  |     at ChildProcess.\u003canonymous\u003e (/workspace/node_modules/python-shell/index.js:131:13)\r\n0|index  |     at ChildProcess.emit (node:events:513:28)\r\n0|index  |     at ChildProcess._handle.onexit (node:internal/child_process:291:12) {\r\n0|index  |   executable: 'python3',\r\n0|index  |   options: [ '-u' ],\r\n0|index  |   script: '/workspace/src/scripts/algorithm/lagrange.py',\r\n0|index  |   args: [\r\n0|index  |     '--ee 35.96691467421596',\r\n0|index  |     '--es 140.0746095366776',\r\n0|index  |     '--eu 36.1061130',\r\n\r\n\r\n**Other Information (please complete the following information):**\r\n - OS: [e.g. Windows10]\r\n - Python Version [e.g. 3.6]\r\n - Node Version [e.g. 12]\r\n\r\n**Additional context**\r\n\r\nData validity or why using args with double-digit naming such a small number of inputs is not essential. The above is only for reproducing the error. The actual code and log are too long. \r\n\r\nWhen using single digit args -e instead of --ee, there is no issue. ","author":{"url":"https://github.com/baagiiSW","@type":"Person","name":"baagiiSW"},"datePublished":"2023-01-06T16:16:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/280/python-shell/issues/280"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1382b76c-7e97-e543-e214-8ca0f04553d7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F1E:3CECC8:2EA01CB:3DC21C7:69743E8A
html-safe-nonce05bf81287f6cd7e2d055971bf29d6e9bfc3bc50e663a9acdd6ab879408f10daa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjFFOjNDRUNDODoyRUEwMUNCOjNEQzIxQzc6Njk3NDNFOEEiLCJ2aXNpdG9yX2lkIjoiMjM0NTI1NTAzOTY0MDI4ODkwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4d35a672b6ed7b8aea512f065cbe7c1542301814b9f3d21178b6b9410494253f
hovercard-subject-tagissue:1522821501
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/extrabacon/python-shell/280/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f1023e15bf99e4e86838761fa09098818b85296abdc6202ff000f9563986d605/extrabacon/python-shell/issues/280
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f1023e15bf99e4e86838761fa09098818b85296abdc6202ff000f9563986d605/extrabacon/python-shell/issues/280
og:image:altDescribe the bug Due to logic and variable number using double prefix args (--lt, --ed etc) is required. Python code ` parser = ArgumentParser() parser.add_argument( "--es", type = float, dest = "e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebaagiiSW
hostnamegithub.com
expected-hostnamegithub.com
Nonee0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c
turbo-cache-controlno-preview
go-importgithub.com/extrabacon/python-shell git https://github.com/extrabacon/python-shell.git
octolytics-dimension-user_id1558613
octolytics-dimension-user_loginextrabacon
octolytics-dimension-repository_id17671651
octolytics-dimension-repository_nwoextrabacon/python-shell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17671651
octolytics-dimension-repository_network_root_nwoextrabacon/python-shell
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
release56fe7e2e8de6e57740bca50402351ea656f7a4bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/280#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextrabacon%2Fpython-shell%2Fissues%2F280
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextrabacon%2Fpython-shell%2Fissues%2F280
Sign up https://patch-diff.githubusercontent.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=extrabacon%2Fpython-shell
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/280
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/280
Reloadhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/280
extrabacon https://patch-diff.githubusercontent.com/extrabacon
python-shellhttps://patch-diff.githubusercontent.com/extrabacon/python-shell
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Fork 221 https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Star 2.2k https://patch-diff.githubusercontent.com/login?return_to=%2Fextrabacon%2Fpython-shell
Code https://patch-diff.githubusercontent.com/extrabacon/python-shell
Issues 55 https://patch-diff.githubusercontent.com/extrabacon/python-shell/issues
Pull requests 5 https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulls
Actions https://patch-diff.githubusercontent.com/extrabacon/python-shell/actions
Projects 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/projects
Wiki https://patch-diff.githubusercontent.com/extrabacon/python-shell/wiki
Security 0 https://patch-diff.githubusercontent.com/extrabacon/python-shell/security
Insights https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulse
Code https://patch-diff.githubusercontent.com/extrabacon/python-shell
Issues https://patch-diff.githubusercontent.com/extrabacon/python-shell/issues
Pull requests https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulls
Actions https://patch-diff.githubusercontent.com/extrabacon/python-shell/actions
Projects https://patch-diff.githubusercontent.com/extrabacon/python-shell/projects
Wiki https://patch-diff.githubusercontent.com/extrabacon/python-shell/wiki
Security https://patch-diff.githubusercontent.com/extrabacon/python-shell/security
Insights https://patch-diff.githubusercontent.com/extrabacon/python-shell/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/extrabacon/python-shell/issues/280
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/extrabacon/python-shell/issues/280
Double digit args prefix not passing properlyhttps://patch-diff.githubusercontent.com/extrabacon/python-shell/issues/280#top
bughttps://github.com/extrabacon/python-shell/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/baagiiSW
https://github.com/baagiiSW
baagiiSWhttps://github.com/baagiiSW
on Jan 6, 2023https://github.com/extrabacon/python-shell/issues/280#issue-1522821501
bughttps://github.com/extrabacon/python-shell/issues?q=state%3Aopen%20label%3A%22bug%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.