Reject unknown CLI commands when help is requested
Why
Argument normalization discarded unknown command names when help was requested, so misspelled commands printed root help and exited with 0.
modifiedRepresentation Cli.normalize_argv routing
text
Before
After
rescript invalid --help -> rescript --help=plainrescript invalid --help -> rescript help invalid
modifiedDiagnostic unknown command help
text
Before
After
rescript invalid --helprescript invalid --helpRoot help on stdout; exit status 0. rescript: unknown command "invalid"Exit status 2.