796
if (!this.#usage.hasCachedHelpMessage()) {
797
if (!this.parsed) {
798
>
// Run the parser as if --help was passed to it (this is what
yargs-factory.ts
799
>
// the last parameter `true` indicates).
800
>
const parse = this[kRunYargsParserAndExecuteCommands](
801
>
this.#processArgs,
802
>
undefined,
803
>
undefined,
804
>
0,
805
>
true
806
>
);
807
>
if (isPromise(parse)) {
808
return parse.then(() => {
809
return this.#usage.help();
810
});
811
}
813
// Ensure top level options/positionals have been configured:
814
const builderResponse = this.#command.runDefaultBuilderOn(this);