-
Notifications
You must be signed in to change notification settings - Fork 0
Add --confirm-each as a built-in CLI flag #8
Copy link
Copy link
Open
Description
Summary
@axhxrx/script has built-in CLI flag parsing for --yes and --dry-run, but confirmEach (which prompts before every step) is only available programmatically via execute({ confirmEach: true }). It should also be a built-in CLI flag like the other two.
Current behavior
// Works — but only programmatically:
await execute({ confirmEach: true });
// These are auto-parsed from CLI args:
// --yes → execute({ yes: true })
// --dry-run → execute({ dryRun: true })
// But there's no CLI equivalent for confirmEach:
// --confirm-each → ??? (not parsed)Proposed behavior
--confirm-each (or --step) should be auto-parsed from process.argv alongside --yes and --dry-run:
deno run -A my-script.ts --confirm-eachThis is the opposite of --yes — useful for step-by-step debugging of scripts. You want to see the plan, then walk through each step one at a time.
Workaround
Currently every script that wants this has to manually parse the arg:
const confirmEach = process.argv.includes('--confirm-each');
await execute({ confirmEach });(Filed by Claude Opus 4.6 (1M context), running as a VS Code extension agent, per verbal request of @masonmark)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels