@oclif/core 3.10.6 → 3.10.7
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/help/index.js +1 -1
- package/package.json +1 -1
package/lib/help/index.js
CHANGED
|
@@ -193,7 +193,7 @@ class Help extends HelpBase {
|
|
|
193
193
|
if (command) {
|
|
194
194
|
if (command.hasDynamicHelp && command.pluginType !== 'jit') {
|
|
195
195
|
const loaded = await command.load();
|
|
196
|
-
for (const [name, flag] of Object.entries(loaded.flags)) {
|
|
196
|
+
for (const [name, flag] of Object.entries(loaded.flags ?? {})) {
|
|
197
197
|
// As of v3 each flag that needs to be re-evaluated has the `hasDynamicHelp` property.
|
|
198
198
|
// However, we cannot assume that the absence of this property means that the flag
|
|
199
199
|
// doesn't need to be re-evaluated since any command from a v2 or older plugin will
|