Repository navigation
fix(cli): hide internal run verb and suggest near-miss commands - #887
Conversation
|
Verdict: PASS |
|
Verdict: PASS Correctness. Design. Reusing Tests / docs. New cases cover the Risk. T2 by size/path (package CLI argparse error text only; 101 lines / 3 files, under the 250-line cap). No evolve-loop change. AGENT_PAUSE=false; will squash-merge when required CI is green. |
Closes #886
An unknown top-level verb no longer lists the internal detached-worker
runcommand among argparse'schoose fromchoices (#420hid it from--helpand the{…}usage metavar, but a typo still walkedsub.choices). A hyphen/case fold or close typo (algoritms,compile_skill,COMPILE-SKILL) now getsdid you mean …?.agentdescent runitself still parses forevolve --detach.--jsoncarries the same error text. Otherchoices=flags reuse the helper; theirinvalid choice: '…'prefix is unchanged.Verification
pytest -q tests/test_cli_help_hides_internal_run.py tests/test_cli_json_usage_errors.py tests/test_install_host_aliases.py tests/test_changelog_fragments.py::test_real_fragments_are_valid tests/test_cli_algorithms_bare.pypassedagentdescent algoritms/compile_skill/--json algoritmshide'run'and suggest the public verb