@oclif/core 4.5.5 → 4.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,8 @@ class CommandHelp extends formatter_1.HelpFormatter {
58
58
  return;
59
59
  return args.map((a) => {
60
60
  // Add ellipsis to indicate that the argument takes multiple values if strict is false
61
- const name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
61
+ let name = this.command.strict === false ? `${a.name.toUpperCase()}...` : a.name.toUpperCase();
62
+ name = a.required ? `${name}` : `[${name}]`;
62
63
  let description = a.description || '';
63
64
  if (a.default)
64
65
  description = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${a.default}]`)} ${description}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.5.5",
4
+ "version": "4.5.6",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {