@oclif/core 1.23.2 → 2.0.0-beta.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/lib/config/config.js +3 -1
- package/package.json +1 -1
package/lib/config/config.js
CHANGED
|
@@ -677,7 +677,9 @@ async function toCached(c, plugin) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
|
|
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,
|