@oclif/core 1.16.1 → 1.16.2

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,13 @@
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.2](https://github.com/oclif/core/compare/v1.16.1...v1.16.2) (2022-09-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * throw if unexpected argument ([#491](https://github.com/oclif/core/issues/491)) ([da6d20c](https://github.com/oclif/core/commit/da6d20c388e48f65560822cee141d4f2fc5955a5))
11
+
5
12
  ### [1.16.1](https://github.com/oclif/core/compare/v1.16.0...v1.16.1) (2022-09-08)
6
13
 
7
14
 
@@ -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.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {