315
// Support the use-case of async builders:
316
if (isPromise(builderOutput)) {
317
>
return builderOutput.then(output => {
command.ts
318
>
innerYargs = isYargsInstance(output) ? output : yargs;
319
>
return this.parseAndUpdateUsage(
320
>
isDefaultCommand,
321
>
commandHandler,
322
>
innerYargs,
323
>
parentCommands,
324
>
commandIndex,
325
>
helpOnly
326
>
);
327
>
});
328
>
}
329
} else if (isCommandBuilderOptionDefinitions(builder)) {
330
// as a short hand, an object can instead be provided, specifying