Repository navigation
fix(cli): stop advertising multi-letter single-dash option aliases - #1395
Merged
Merged
Conversation
Incur's `alias` map registers one-letter short flags and already accepts kebab-case spellings of camelCase options. Twenty options registered their kebab-case long name as an "alias", so help and completions advertised flags such as `-case-sensitive` and `-relative-path` that the parser reads as stacked short flags and rejects with "Unknown flag: -c". Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…orluto#1395) Incur's `alias` map registers one-letter short flags and already accepts kebab-case spellings of camelCase options. Twenty options registered their kebab-case long name as an "alias", so help and completions advertised flags such as `-case-sensitive` and `-relative-path` that the parser reads as stacked short flags and rejects with "Unknown flag: -c".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Incur's per-command
aliasmap registers one-letter short flags: the parser reads-abcas the stacked flags-a -b -c. Incur also accepts the kebab-case spelling of every camelCase option, so--case-sensitivealready works without any alias.Twenty options across 12 commands registered their own kebab-case long name as an "alias" (for example
caseSensitive: "case-sensitive"). As a result,--help(and generated completions) advertised spellings that the parser rejects:Affected:
analyze,analyze-javascript-application,inspect-artifact(-integrity-policy),search,trace(-case-sensitive),inspect-plist(-relative-path),decode-interface-builder(-max-documents/-objects/-connections),inspect-native-dispatch-metadata(-max-records),trace-native-values,trace-native-ui-action,capture-native-ui-scenario,observe-native-ui(-max-*,-window-id), anduninstall(-purge-data).Change
alias: {}). The real short flagsetup -yis unchanged.--long-namespellings keep working through Incur's kebab-case normalization.Tests
New
tests/boundary/cli/cliOptionAliases.test.ts:--helpoutput advertises a multi-letter single-dash flag (fails on main with all 20 entries listed);--relative-pathstill parses without a registered alias.Verification:
npm run test:focused -- tests/boundary/cli/*.test.ts(42 files, 200 passed)npm run check:fast,npm run docs:checkNo contract, schema or MCP change. No Hopper/Ghidra verification needed (CLI parsing only).
🤖 Generated with Claude Code