diff --git a/node_modules/@oclif/core/lib/cli-ux/list.js b/node_modules/@oclif/core/lib/cli-ux/list.js index 607d8dc..07ba1f2 100644 --- a/node_modules/@oclif/core/lib/cli-ux/list.js +++ b/node_modules/@oclif/core/lib/cli-ux/list.js @@ -22,7 +22,7 @@ function renderList(items) { } left = left.padEnd(maxLength); right = linewrap(maxLength + 2, right); - return `${left} ${right}`; + return `${left} : ${right}`; }); return lines.join('\n'); } diff --git a/node_modules/@oclif/core/lib/help/command.js b/node_modules/@oclif/core/lib/help/command.js index 6640bf9..22dac8a 100644 --- a/node_modules/@oclif/core/lib/help/command.js +++ b/node_modules/@oclif/core/lib/help/command.js @@ -59,7 +59,9 @@ class CommandHelp extends formatter_1.HelpFormatter { return; return args.map((a) => { // Add ellipsis to indicate that the argument takes multiple values if strict is false - const name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase(); + let name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase(); + name = a.required ? `<${name}>` : `[${name}]`; + let description = a.description || ''; if (a.default) description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`; @@ -154,14 +156,12 @@ class CommandHelp extends formatter_1.HelpFormatter { label = labels.join(flag.char ? (0, theme_1.colorize)(this.config?.theme?.flagSeparator, ', ') : ' '); } if (flag.type === 'option') { - let value = flag.helpValue || (this.opts.showFlagNameInTitle ? flag.name : ''); + let value = flag.helpValue || (this.opts.showFlagNameInTitle ? flag.name : `<${flag.name}>`); if (!flag.helpValue && flag.options) { value = showOptions || this.opts.showFlagOptionsInTitle ? `${flag.options.join('|')}` : '