728
if (!this.defaultCommand) return;
729
if (this.shouldUpdateUsage(yargs)) {
730
>
// build the root-level command string from the default string.
command.ts
731
>
const commandString = DEFAULT_MARKER.test(this.defaultCommand.original)
732
>
? this.defaultCommand.original
733
>
: this.defaultCommand.original.replace(/^[^[\]<>]*/, '$0 ');
734
>
yargs
735
>
.getInternalMethods()
736
>
.getUsageInstance()
737
>
.usage(commandString, this.defaultCommand.description);
738
>
}
739
const builder = this.defaultCommand.builder;
740
if (isCommandBuilderCallback(builder)) {