CLI.Dispatch
is what dispatching an App yields. It answers not just
whether parsing succeeded, but whether help was requested and for what, so a
caller can show the right usage:
Parsed— success. Holds aPairof the chosen subcommand name and its parsed valueMap.AppHelp— top-level--help/-hwas given before any subcommand; respond withApp.usage.CommandHelp— a subcommand’s own--help/-hwas given; carries that subcommand’s name, so respond withApp.usage-for.Failure— carries a human-readable error message (a missing, unknown, or option-shaped leading token, or the subcommand’s own parse error).
delete
instantiate
(Fn [CLI.Dispatch] ())
deletes a CLI.Dispatch. This should usually not be called manually.