@oclif/core
Advanced tools
Comparing version 3.23.1 to 3.24.0
@@ -61,3 +61,4 @@ "use strict"; | ||
return args.map((a) => { | ||
const name = a.name.toUpperCase(); | ||
// 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 description = a.description || ''; | ||
@@ -64,0 +65,0 @@ if (a.default) |
@@ -62,4 +62,4 @@ import { Command } from '../command'; | ||
private flagMap; | ||
constructor(cmd: Command.Cached | Command.Class | Command.Loadable); | ||
static generate(cmd: Command.Cached | Command.Class | Command.Loadable): string; | ||
constructor(cmd: Command.Loadable); | ||
static generate(cmd: Command.Loadable): string; | ||
toString(): string; | ||
@@ -66,0 +66,0 @@ private combineElementsToFlag; |
@@ -82,3 +82,5 @@ "use strict"; | ||
if (this.cmd.args) { | ||
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args)).map((arg) => arg.required ? arg.name.toUpperCase() : `[${arg.name.toUpperCase()}]`) || []; | ||
// If strict is false, add ellipsis to indicate that the argument takes multiple values | ||
const suffix = this.cmd.strict === false ? '...' : ''; | ||
const a = Object.values((0, ensure_arg_object_1.ensureArgObject)(this.cmd.args)).map((arg) => arg.required ? `${arg.name.toUpperCase()}${suffix}` : `[${arg.name.toUpperCase()}${suffix}]`) || []; | ||
opts.push(...a); | ||
@@ -85,0 +87,0 @@ } |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "3.23.1", | ||
"version": "3.24.0", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
436088
11404