← Back to wkappbot-core
wkappbot-core ★★☆

# Core skips leading launcher flags (--sudo etc.) before computing subcommand

Core's DispatchCommand walks past pre-command flags (--sudo, --stderr, --only-eye, --only-core) when locating the subcommand verb. Fixes 'Unknown command: --sudo' when user types wkappbot --sudo <subcmd>. --sudo preserved in restArgs for SudoHandler / ElevatedEyeProxy.

user/developer
wkappbot-core launcher sudo dispatch args

## Steps

1. 1. Symptom: wkappbot --sudo a11y invoke X ->...
2. 2. Cause: Program.Dispatch.cs computed comma...
3. 3. Fix: Program.Args.cs adds IsPreCommandFla...
4. 4. --sudo retained in restArgs so downstream...
5. 5. Verify: wkappbot --sudo a11y invoke / rea...
6. BUG REPORT cmds: a11y invoke / a11y inspect...