From ecdc1fa114f0685e2f0d9f177e96adc2dfb9dc2c Mon Sep 17 00:00:00 2001 From: Elaine YIN Date: Mon, 6 Apr 2026 16:36:53 -0700 Subject: [PATCH] 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 --- src/command.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command.ts b/src/command.ts index 7ccbbaf..453df90 100644 --- a/src/command.ts +++ b/src/command.ts @@ -49,6 +49,8 @@ export const GLOBAL_OPTIONS: OptionDef[] = [ { flag: '--no-color', description: 'Disable ANSI colors' }, { flag: '--dry-run', description: 'Dry run mode' }, { flag: '--non-interactive', description: 'Disable interactive prompts' }, + { flag: '--yes', description: 'Skip confirmation prompts' }, + { flag: '--async', description: 'Return immediately (agent/CI mode)' }, { flag: '--help', description: 'Show help' }, { flag: '--version', description: 'Print version' }, ];