MCPcopy Create free account
hub / github.com/yargs/yargs / shouldUpdateUsage

Method shouldUpdateUsage

lib/command.ts:394–399  ·  view source on GitHub ↗
(yargs: YargsInstance)

Source from the content-addressed store, hash-verified

392 };
393 }
394 private shouldUpdateUsage(yargs: YargsInstance) {
395 return (
396 !yargs.getInternalMethods().getUsageInstance().getUsageDisabled() &&
397 yargs.getInternalMethods().getUsageInstance().getUsage().length === 0
398 );
399 }
400 private usageFromParentCommandsCommandHandler(
401 parentCommands: string[],
402 commandHandler: CommandHandler

Callers 2

parseAndUpdateUsageMethod · 0.95
runDefaultBuilderOnMethod · 0.95

Calls 4

getUsageDisabledMethod · 0.80
getUsageInstanceMethod · 0.80
getInternalMethodsMethod · 0.80
getUsageMethod · 0.80

Tested by

no test coverage detected