From 82c0cfe45f6d6cc079db2222be964c8be4b280e1 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Tue, 30 Jun 2026 12:07:56 +0000 Subject: [PATCH] feat(cli): add -l shorthand to impact --limit The PR added the -l alias to context/cypher/detect-changes but left impact on the long --limit only, so `impact -l 5` errored while `context -l 5` worked. Add -l for parity and update the help-i18n OPTION_DESCRIPTION_KEYS key to the new `-l, --limit ` flag string so the description still resolves. (#2310) --- gitnexus/src/cli/help-i18n.ts | 2 +- gitnexus/src/cli/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitnexus/src/cli/help-i18n.ts b/gitnexus/src/cli/help-i18n.ts index f33c88067..04133e54c 100644 --- a/gitnexus/src/cli/help-i18n.ts +++ b/gitnexus/src/cli/help-i18n.ts @@ -121,7 +121,7 @@ const OPTION_DESCRIPTION_KEYS = { 'impact|--kind ': 'help.option.impact.kind', 'impact|--depth ': 'help.option.impact.depth', 'impact|--include-tests': 'help.option.impact.includeTests', - 'impact|--limit ': 'help.option.impact.limit', + 'impact|-l, --limit ': 'help.option.impact.limit', 'impact|--offset ': 'help.option.impact.offset', 'impact|--summary-only': 'help.option.impact.summaryOnly', 'cypher|-r, --repo ': 'help.option.repo.target', diff --git a/gitnexus/src/cli/index.ts b/gitnexus/src/cli/index.ts index 18c9bbbce..62a1917b1 100644 --- a/gitnexus/src/cli/index.ts +++ b/gitnexus/src/cli/index.ts @@ -360,7 +360,7 @@ program .option('--depth ', 'Max relationship depth (default: 3)') .option('--include-tests', 'Include test files in results') .option( - '--limit ', + '-l, --limit ', 'Max symbols per depth level and affected processes/modules to return (default: 100)', ) .option('--offset ', 'Skip N symbols per depth level for pagination')