We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2022666 commit 0447b96Copy full SHA for 0447b96
src/interactive-command.ts
@@ -111,6 +111,13 @@ export class InteractiveCommand extends Command {
111
this._providedOptionsSources = providedOptionsSources;
112
} catch {}
113
114
+ // Even if we prompt for the missing options of the root command here, there
115
+ // is no easy way to feed them into super.parseAsync. Therefore, interactive
116
+ // options are not supported on the root command when no subcommand is
117
+ // invoked. This is a limitation of Commander.js. The only supported hook
118
+ // is "preSubcommand" which is called after parsing argv and before calling
119
+ // the subcommand's action.
120
+
121
return super.parseAsync(argv, options);
122
}
123
0 commit comments