@oclif/core 1.23.2 → 2.0.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.
@@ -677,7 +677,9 @@ async function toCached(c, plugin) {
677
677
  }
678
678
  }
679
679
  }
680
- const argsPromise = (c.args || []).map(async (a) => ({
680
+ // v2 commands have args as an object, so we need to normalize it to an array for forwards compatibility
681
+ const normalized = (Array.isArray(c.args) ? c.args ?? [] : Object.values(c.args ?? {}));
682
+ const argsPromise = normalized.map(async (a) => ({
681
683
  name: a.name,
682
684
  description: a.description,
683
685
  required: a.required,
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.23.2",
4
+ "version": "2.0.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {