René's URL Explorer Experiment


Title: Dotted flags sharing a prefix overwrite each other (`--a.b=1 --a.c=2` yields `{ a: { c: 2 } }`) · Issue #19 · bombshell-dev/args · GitHub

Open Graph Title: Dotted flags sharing a prefix overwrite each other (`--a.b=1 --a.c=2` yields `{ a: { c: 2 } }`) · Issue #19 · bombshell-dev/args

X Title: Dotted flags sharing a prefix overwrite each other (`--a.b=1 --a.c=2` yields `{ a: { c: 2 } }`) · Issue #19 · bombshell-dev/args

Description: <1kB CLI flag parser. Contribute to bombshell-dev/args development by creating an account on GitHub.

Open Graph Description: <1kB CLI flag parser. Contribute to bombshell-dev/args development by creating an account on GitHub.

X Description: <1kB CLI flag parser. Contribute to bombshell-dev/args development by creating an account on GitHub.

Opengraph URL: https://github.com/bombshell-dev/args

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dotted flags sharing a prefix overwrite each other (`--a.b=1 --a.c=2` yields `{ a: { c: 2 } }`)","articleBody":"### Package\n\n@bomb.sh/args\n\n### Package Version\n\nv0.3.1 (also on main `3bc34eb`)\n\n### Node.js Version\n\nv26.13.0\n\n### Operating System\n\nLinux\n\n### Describe the bug\n\nWhen multiple dotted flags share a path prefix, each subsequent flag overwrites the parent object instead of merging into it. In `set()` (`src/index.ts`), every intermediate path segment creates a fresh `const tmp = {}` and assigns `set(obj, k, tmp)` without checking whether `obj[k]` is already an object.\n\n### To Reproduce\n\nReproduction link: https://gist.github.com/trackoor/bd7f8e655e9f13ce293117d288558f53\n\n```js\n// repro.mjs (npm i @bomb.sh/args@0.3.1 && node repro.mjs)\nimport { parse } from \"@bomb.sh/args\";\n\nconsole.log(parse([\"--a.b=1\", \"--a.c=2\"]));\n// Actual: { _: [], a: { c: 2 } }\n\nconsole.log(parse([\"--a.b.c=1\", \"--a.b.d=2\", \"--a.e=3\"]));\n// Actual: { _: [], a: { e: 3 } }\n```\n\n### Expected behavior\n\nSibling nested keys under the same prefix should be preserved (matching Deno's `std/cli` `parseArgs`):\n\n```js\n// parse([\"--a.b=1\", \"--a.c=2\"])\n{ _: [], a: { b: 1, c: 2 } }\n\n// parse([\"--a.b.c=1\", \"--a.b.d=2\", \"--a.e=3\"])\n{ _: [], a: { b: { c: 1, d: 2 }, e: 3 } }\n```\n\n### Additional Information\n\nFound with a differential-testing tool; the report was drafted with AI assistance and reviewed and edited by me.\n\n### AI assistance disclosure\n\n- [x] This bug report was drafted with the assistance of an AI tool.\n\nCredit: https://ucsbplse.github.io/\n","author":{"url":"https://github.com/trackoor","@type":"Person","name":"trackoor"},"datePublished":"2026-11-14T05:12:33Z","url":"https://github.com/bombshell-dev/args/issues/19"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:2905fd5a-b415-d0b0-e3fe-df8acd1ebff4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB42:3D2677:28FE24A:35AD3AD:6AF9ABE2
html-safe-nonce690e196653fea2139993c3fe0ee367b34ae44e18ba62f9ed4742c3d7ccbe9a4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjQyOjNEMjY3NzoyOEZFMjRBOjM1QUQzQUQ6NkFGOUFCRTIiLCJ2aXNpdG9yX2lkIjoiNDExNjAzMTE1OTU1NTYzNDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb152380a41dc088edce93c61b591bebba9c5a89e9df0331b44f03d729fe7dced
hovercard-subject-tagrepository:597500300
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/bombshell-dev/args/issues/19
twitter:imagehttps://opengraph.githubassets.com/1492d16648c9ff42ab83026b790176a2c5243c08035b72b35eecb937d68656ec/bombshell-dev/args
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1492d16648c9ff42ab83026b790176a2c5243c08035b72b35eecb937d68656ec/bombshell-dev/args
og:image:alt<1kB CLI flag parser. Contribute to bombshell-dev/args development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/bombshell-dev/args git https://github.com/bombshell-dev/args.git
octolytics-dimension-user_id169915079
octolytics-dimension-user_loginbombshell-dev
octolytics-dimension-repository_id597500300
octolytics-dimension-repository_nwobombshell-dev/args
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id597500300
octolytics-dimension-repository_network_root_nwobombshell-dev/args
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/bombshell-dev/args/issues/19#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbombshell-dev%2Fargs%2Fissues%2F19
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%2Fbombshell-dev%2Fargs%2Fissues%2F19
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=bombshell-dev%2Fargs
Reloadhttps://github.com/bombshell-dev/args/issues/19
Reloadhttps://github.com/bombshell-dev/args/issues/19
Reloadhttps://github.com/bombshell-dev/args/issues/19
https://github.com/bombshell-dev/args
New issuehttps://github.com/login?return_to=https://github.com/bombshell-dev/args/issues/19
New issuehttps://github.com/login?return_to=https://github.com/bombshell-dev/args/issues/19
Dotted flags sharing a prefix overwrite each other (--a.b=1 --a.c=2 yields { a: { c: 2 } })https://github.com/bombshell-dev/args/issues/19#top
https://github.com/trackoor
trackoorhttps://github.com/trackoor
on Nov 14, 2026https://github.com/bombshell-dev/args/issues/19#issue-6385615578
https://gist.github.com/trackoor/bd7f8e655e9f13ce293117d288558f53https://gist.github.com/trackoor/bd7f8e655e9f13ce293117d288558f53
https://ucsbplse.github.io/https://ucsbplse.github.io/
Sign up for freehttps://github.com/signup?return_to=https://github.com/bombshell-dev/args/issues/19
Sign in to commenthttps://github.com/login?return_to=https://github.com/bombshell-dev/args/issues/19
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.