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 <n>` flag string so the description still resolves. (#2310)
This commit is contained in:
Gergo Magyar 2026-06-30 12:07:56 +00:00
parent c64bf652b2
commit 82c0cfe45f
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ const OPTION_DESCRIPTION_KEYS = {
'impact|--kind <kind>': 'help.option.impact.kind',
'impact|--depth <n>': 'help.option.impact.depth',
'impact|--include-tests': 'help.option.impact.includeTests',
'impact|--limit <n>': 'help.option.impact.limit',
'impact|-l, --limit <n>': 'help.option.impact.limit',
'impact|--offset <n>': 'help.option.impact.offset',
'impact|--summary-only': 'help.option.impact.summaryOnly',
'cypher|-r, --repo <name>': 'help.option.repo.target',

View file

@ -360,7 +360,7 @@ program
.option('--depth <n>', 'Max relationship depth (default: 3)')
.option('--include-tests', 'Include test files in results')
.option(
'--limit <n>',
'-l, --limit <n>',
'Max symbols per depth level and affected processes/modules to return (default: 100)',
)
.option('--offset <n>', 'Skip N symbols per depth level for pagination')