Skip to content

fix: parse --flag=value form in CLI args - #41

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-flag-equals-parse-c699
Sep 12, 2026
Merged

fix: parse --flag=value form in CLI args#41
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-flag-equals-parse-c699

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

Long options with an inline value (--fail-on=high) are now split on the first = so they set flags[\"fail-on\"] instead of a boolean key fail-on=high.

Test plan

  • npm test — includes parseArgs > parses --flag=value as a string flag value

Fixes #28

@royalpinto007
royalpinto007 merged commit 46b71ca into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

This is in, @sharadvc. Really appreciate it.

Genuinely helpful change for MCP-audit.

If this project helps you out, a star helps others find it too.

Happy to see more from you whenever you have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--flag=value form silently misparsed

2 participants