@oclif/core 1.16.1 → 1.16.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.16.3](https://github.com/oclif/core/compare/v1.16.2...v1.16.3) (2022-09-16)
6
+
7
+ ### [1.16.2](https://github.com/oclif/core/compare/v1.16.1...v1.16.2) (2022-09-16)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * throw if unexpected argument ([#491](https://github.com/oclif/core/issues/491)) ([da6d20c](https://github.com/oclif/core/commit/da6d20c388e48f65560822cee141d4f2fc5955a5))
13
+
5
14
  ### [1.16.1](https://github.com/oclif/core/compare/v1.16.0...v1.16.1) (2022-09-08)
6
15
 
7
16
 
package/lib/help/index.js CHANGED
@@ -131,7 +131,12 @@ class Help extends HelpBase {
131
131
  this.log('');
132
132
  }
133
133
  if (subCommands.length > 0) {
134
- this.log(this.formatCommands(subCommands));
134
+ const aliases = [];
135
+ const uniqueSubCommands = subCommands.filter(p => {
136
+ aliases.push(...p.aliases);
137
+ return !aliases.includes(p.id);
138
+ });
139
+ this.log(this.formatCommands(uniqueSubCommands));
135
140
  this.log('');
136
141
  }
137
142
  }
@@ -224,7 +224,7 @@ class Parser {
224
224
  }
225
225
  stdinRead = true;
226
226
  }
227
- if (!args[i] && 'default' in arg) {
227
+ if (!args[i] && arg?.default !== undefined) {
228
228
  if (typeof arg.default === 'function') {
229
229
  // eslint-disable-next-line no-await-in-loop
230
230
  const f = await arg.default();
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": "1.16.1",
4
+ "version": "1.16.3",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {