2044
// command defer processing to it.
2045
if (this.#helpOpt) {
2046
>
// consider any multi-char helpOpt alias as a valid help command
yargs-factory.ts
2047
>
// unless all helpOpt aliases are single-char
2048
>
// note that parsed.aliases is a normalized bidirectional map :)
2049
>
const helpCmds = [this.#helpOpt]
2050
>
.concat(aliases[this.#helpOpt] || [])
2051
>
.filter(k => k.length > 1);
2052
>
// check if help should trigger and strip it from _.
2053
>
if (helpCmds.includes('' + argv._[argv._.length - 1])) {
2054
argv._.pop();
2055
helpOptSet = true;
2056
}
2058
2059
this.#isGlobalContext = false;