@oclif/core
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.3.5](https://github.com/oclif/core/compare/v1.3.4...v1.3.5) (2022-02-25) | ||
### Bug Fixes | ||
* print valid flag values in error message when using `exactlyOne` ([#349](https://github.com/oclif/core/issues/349)) ([ddcaeb2](https://github.com/oclif/core/commit/ddcaeb2f9b690d9b92dd0ac4937b6399f606adfa)) | ||
### [1.3.4](https://github.com/oclif/core/compare/v1.3.3...v1.3.4) (2022-02-11) | ||
@@ -7,0 +14,0 @@ |
@@ -33,2 +33,3 @@ "use strict"; | ||
function validateAcrossFlags(flag) { | ||
var _a; | ||
const intersection = Object.entries(parse.input.flags) | ||
@@ -41,4 +42,4 @@ .map(entry => entry[0]) // array of flag names | ||
throw new errors_1.CLIError(`Exactly one of the following must be provided: ${[ | ||
...new Set(...flag.exactlyOne || [], flag.name), | ||
].join(',')}`); | ||
...new Set((_a = flag.exactlyOne) === null || _a === void 0 ? void 0 : _a.map(flag => `--${flag}`)), | ||
].join(', ')}`); | ||
} | ||
@@ -45,0 +46,0 @@ } |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
283723
7184
4
8
2
95