Normalize a typed argv for a get-dotenv host (spec 4.4).
Every qualified option (--<alias>-<path>-<long>, such as --vc-env or
--vc-aws-profile) is moved to the command that owns it and written in
its plain form (--env=bali), wherever it was typed: after a subcommand,
after --, or among a forwarded command's arguments. Typed terminators
are dropped. A default subcommand that an option or -h would have
skipped is written in, so vc node -h runs node -h (Decision 30).
Plain options are left where they are.
GetDotenvCli.parseAsync calls this for every host. A custom host that
parses argv some other way can call it first and hand the result to
Commander with { from: 'user' }.
The first call builds the host's qualified-name table from the command
tree as it stands (and registers each command's hidden terminator), so on
a GetDotenvCli call it after install() and brand(); the table is not
rebuilt.
NormalizeArgvError on a usage error: an unknown --<alias>-*
token, a missing or unexpected qualified value, a qualified option whose
owner isn't invoked or takes no options there, or an option given in
both its plain and qualified forms.
Normalize a typed argv for a get-dotenv host (spec 4.4).
Every qualified option (
--<alias>-<path>-<long>, such as--vc-envor--vc-aws-profile) is moved to the command that owns it and written in its plain form (--env=bali), wherever it was typed: after a subcommand, after--, or among a forwarded command's arguments. Typed terminators are dropped. A default subcommand that an option or-hwould have skipped is written in, sovc node -hrunsnode -h(Decision 30). Plain options are left where they are.GetDotenvCli.parseAsynccalls this for every host. A custom host that parses argv some other way can call it first and hand the result to Commander with{ from: 'user' }.The first call builds the host's qualified-name table from the command tree as it stands (and registers each command's hidden terminator), so on a
GetDotenvClicall it afterinstall()andbrand(); the table is not rebuilt.