yargs 18.0.0-candidate.6 → 18.0.0-candidate.7
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.
|
@@ -1327,6 +1327,7 @@ export class YargsInstance {
|
|
|
1327
1327
|
return __classPrivateFieldGet(this, _YargsInstance_shim, "f").path.relative(base, dir);
|
|
1328
1328
|
}
|
|
1329
1329
|
[kRunYargsParserAndExecuteCommands](args, shortCircuit, calledFromCommand, commandIndex = 0, helpOnly = false) {
|
|
1330
|
+
var _a, _b, _c, _d;
|
|
1330
1331
|
let skipValidation = !!calledFromCommand || helpOnly;
|
|
1331
1332
|
args = args || __classPrivateFieldGet(this, _YargsInstance_processArgs, "f");
|
|
1332
1333
|
__classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__;
|
|
@@ -1372,7 +1373,12 @@ export class YargsInstance {
|
|
|
1372
1373
|
}
|
|
1373
1374
|
__classPrivateFieldSet(this, _YargsInstance_isGlobalContext, false, "f");
|
|
1374
1375
|
const handlerKeys = __classPrivateFieldGet(this, _YargsInstance_command, "f").getCommands();
|
|
1375
|
-
const requestCompletions = __classPrivateFieldGet(this, _YargsInstance_completion, "f").completionKey
|
|
1376
|
+
const requestCompletions = ((_a = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _a === void 0 ? void 0 : _a.completionKey)
|
|
1377
|
+
? [
|
|
1378
|
+
(_b = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _b === void 0 ? void 0 : _b.completionKey,
|
|
1379
|
+
...((_d = this.getAliases()[(_c = __classPrivateFieldGet(this, _YargsInstance_completion, "f")) === null || _c === void 0 ? void 0 : _c.completionKey]) !== null && _d !== void 0 ? _d : []),
|
|
1380
|
+
].some((key) => Object.prototype.hasOwnProperty.call(argv, key))
|
|
1381
|
+
: false;
|
|
1376
1382
|
const skipRecommendation = helpOptSet || requestCompletions || helpOnly;
|
|
1377
1383
|
if (argv._.length) {
|
|
1378
1384
|
if (handlerKeys.length) {
|