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 63c0545..7caad4a 100644 --- a/node_modules/@oclif/core/lib/help/command.js +++ b/node_modules/@oclif/core/lib/help/command.js @@ -58,7 +58,7 @@ class CommandHelp extends formatter_1.HelpFormatter { if (args.filter((a) => a.description).length === 0) return; return args.map((a) => { - const name = a.name.toUpperCase(); + const name = a.required ? `<${a.name}>` : `[${a.name}]`; let description = a.description || ''; if (a.default) description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`; @@ -153,14 +153,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('|')}` : '