Command (subcommands of main)Open and answer this issue on GitHub.
ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments
Part of #449 (subcommands of main, option A).
After #2641 (shared options and command help).
Decision: ADR-cli-v1 D8-D12: the form #449 asked for, used where it was asked for.
scripts/drive.nika reads its modes and flags by hand from cli::args() (the walk in its main), so its usage and help are written out by hand and drift from what it accepts.
drive.nika’s main takes command: Command[…] over its mode functions and a struct option for the flags every mode shares; each mode is a function with its own /// line and options. nikaia run scripts/drive.nika -- --help prints the generated help; every invocation in docs/supervisor.md and the hooks keeps working with the same words.
drive.nika accepts today, and where it is invoked (docs/supervisor.md, .claude/, scripts/), in the report.Command, the shared flags into a struct option; remove the hand walk and the hand-written usage. Test: a drive.nika test in its existing test form (or tests/compiler/tests/cli_command_drive_help.nika + .stdout printing --help), and each invocation of step 1 run with --dry-run or its equivalent where one exists.docs/supervisor.md: the invocations, if any word changed (none should).drive.nika has no hand-written argument walk; its help is generated; the invocations of step 1 work unchanged; step 3’s commit carries Fixes #N. A word the new form cannot express is a Found: line, not a kept walk.
Files: scripts/drive.nika, docs/supervisor.md. No Rust.
Facts: the driver is the supervisor’s tool: commit locally, the main session tests and pushes (CLAUDE.md).
Ruled out: changing what the driver does in the same issue; other tools/*.nika (each moves when next reworked).