@oclif/core 2.8.1-beta.1 → 2.8.1
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.
- package/lib/parser/parse.js +5 -3
- package/package.json +3 -3
package/lib/parser/parse.js
CHANGED
|
@@ -237,11 +237,13 @@ class Parser {
|
|
|
237
237
|
}) : flag.default);
|
|
238
238
|
flags[k] = defaultValue;
|
|
239
239
|
}
|
|
240
|
-
|
|
240
|
+
}
|
|
241
|
+
for (const k of Object.keys(this.input.flags)) {
|
|
242
|
+
if ((k in flags) && Reflect.has(this.input.flags[k], 'defaultHelp')) {
|
|
241
243
|
try {
|
|
242
|
-
const defaultHelpProperty = Reflect.get(
|
|
244
|
+
const defaultHelpProperty = Reflect.get(this.input.flags[k], 'defaultHelp');
|
|
243
245
|
const defaultHelp = (typeof defaultHelpProperty === 'function' ? await defaultHelpProperty({
|
|
244
|
-
options:
|
|
246
|
+
options: flags[k],
|
|
245
247
|
flags, ...this.context,
|
|
246
248
|
}) : defaultHelpProperty);
|
|
247
249
|
this.metaData.flags[k] = { ...this.metaData.flags[k], defaultHelp };
|
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": "2.8.1
|
|
4
|
+
"version": "2.8.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@commitlint/config-conventional": "^12.1.4",
|
|
40
40
|
"@oclif/plugin-help": "^5.2.8",
|
|
41
|
-
"@oclif/plugin-plugins": "^2.4.
|
|
41
|
+
"@oclif/plugin-plugins": "^2.4.3",
|
|
42
42
|
"@oclif/test": "^2.3.11",
|
|
43
43
|
"@types/ansi-styles": "^3.2.1",
|
|
44
44
|
"@types/chai": "^4.3.4",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"eslint": "^7.32.0",
|
|
66
66
|
"eslint-config-oclif": "^4.0.0",
|
|
67
67
|
"eslint-config-oclif-typescript": "^1.0.3",
|
|
68
|
-
"fancy-test": "^2.0.
|
|
68
|
+
"fancy-test": "^2.0.16",
|
|
69
69
|
"globby": "^11.1.0",
|
|
70
70
|
"husky": "6",
|
|
71
71
|
"mocha": "^8.4.0",
|