Skip to content

Commit 4a7bc41

Browse files
authored
Reset subcommand parse state when dispatching
1 parent 56eed63 commit 4a7bc41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/command.js

+1
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
11281128
_dispatchSubcommand(commandName, operands, unknown) {
11291129
const subCommand = this._findCommand(commandName);
11301130
if (!subCommand) this.help({ error: true });
1131+
subCommand.resetParseState();
11311132

11321133
let hookResult;
11331134
hookResult = this._chainOrCallSubCommandHook(hookResult, subCommand, 'preSubcommand');

0 commit comments

Comments
 (0)