Parse an issue_tree command line into a typed Command.
Help is detected first (via detectHelp) and always wins: a bare
invocation, a help subcommand, or --help/-h anywhere on the line yields
a HelpCommand without ever reaching the strict option parser — which
matters because parseArgs would otherwise throw on the unknown --help
option. Only when help is not requested does an empty or unknown subcommand
throw.
Parameters
argv: string[]
arguments after the node/script entries (subcommand first)
Parse an
issue_treecommand line into a typedCommand.Help is detected first (via detectHelp) and always wins: a bare invocation, a
helpsubcommand, or--help/-hanywhere on the line yields a HelpCommand without ever reaching the strict option parser — which matters becauseparseArgswould otherwise throw on the unknown--helpoption. Only when help is not requested does an empty or unknown subcommand throw.