Attempted workflow
Inspect command-specific help for an existing automation update before changing its configuration.
Actual result
--help is recognized only when it occupies the command token itself. When supplied after the update subcommand, it is parsed as an ordinary flag and the update executes. During a read-only review this replaced an automation prompt before the captured prior value was immediately restored.
Source evidence:
plugins/automations/src/cli.ts returns help only when parsed.command is help, --help, or -h.
- The
update branch then calls service.update(...) without rejecting or honoring a trailing help flag.
Expected result
bb automation <subcommand> --help and -h print that subcommand's usage and perform no read or write side effect. Unknown flags should fail rather than being silently ignored.
Acceptance criteria
- Every automation subcommand treats
--help and -h as side-effect-free help regardless of flag position.
- Mutating subcommands never call their service method on a help request.
- Unknown flags return a non-zero usage error.
- Tests cover
create, update, pause, resume, run, and delete with trailing help flags and assert zero mutations/runs.
AGENT GENERATED: by GPT-5.6 Sol
Attempted workflow
Inspect command-specific help for an existing automation update before changing its configuration.
Actual result
--helpis recognized only when it occupies the command token itself. When supplied after theupdatesubcommand, it is parsed as an ordinary flag and the update executes. During a read-only review this replaced an automation prompt before the captured prior value was immediately restored.Source evidence:
plugins/automations/src/cli.tsreturns help only whenparsed.commandishelp,--help, or-h.updatebranch then callsservice.update(...)without rejecting or honoring a trailing help flag.Expected result
bb automation <subcommand> --helpand-hprint that subcommand's usage and perform no read or write side effect. Unknown flags should fail rather than being silently ignored.Acceptance criteria
--helpand-has side-effect-free help regardless of flag position.create,update,pause,resume,run, anddeletewith trailing help flags and assert zero mutations/runs.