fix(cli): stop advertising multi-letter single-dash option aliases (#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".

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-09 19:29:20 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 5fc4d792ca
commit 498cec042a
7 changed files with 71 additions and 34 deletions
-5
View File
@@ -65,10 +65,6 @@ export const registerUtilityCommands = (
.default(500)
.describe("Maximum accessibility nodes per capture"),
}),
alias: {
windowId: "window-id",
maxNodes: "max-nodes",
},
run: ({ args, options }) =>
logCliCommand(logger, command, async () => {
const parameters = {
@@ -172,7 +168,6 @@ const registerNativeCommands = (
"Plist path relative to the app root (default: Contents/Info.plist)",
),
}),
alias: { relativePath: "relative-path" },
run: ({ args, options }) =>
logCliCommand(logger, "inspect-plist", () =>
runProviderAnalysis(