Skip to content

Commit ecdc1fa

Browse files
Elaine YINclaude
authored andcommitted
fix(args): register --yes and --async in GLOBAL_OPTIONS
These flags were in GlobalFlags and loadConfig but not in GLOBAL_OPTIONS, causing the parser to treat them as string flags that consume the next arg. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 920273d commit ecdc1fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/command.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export const GLOBAL_OPTIONS: OptionDef[] = [
4949
{ flag: '--no-color', description: 'Disable ANSI colors' },
5050
{ flag: '--dry-run', description: 'Dry run mode' },
5151
{ flag: '--non-interactive', description: 'Disable interactive prompts' },
52+
{ flag: '--yes', description: 'Skip confirmation prompts' },
53+
{ flag: '--async', description: 'Return immediately (agent/CI mode)' },
5254
{ flag: '--help', description: 'Show help' },
5355
{ flag: '--version', description: 'Print version' },
5456
];

0 commit comments

Comments
 (0)