@zhennann/common-bin 2.9.10 → 3.0.0
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/command.js +1 -0
- package/package.json +1 -1
package/lib/command.js
CHANGED
|
@@ -236,6 +236,7 @@ class CommonBin {
|
|
|
236
236
|
|
|
237
237
|
debug('[%s] dispatch to subcommand `%s` -> `%s` with %j', this.constructor.name, commandName, Command.name, rawArgv);
|
|
238
238
|
const command = this.getSubCommandInstance(Command, rawArgv);
|
|
239
|
+
this.subCommand = command; // by zhennann
|
|
239
240
|
yield command[DISPATCH]();
|
|
240
241
|
return;
|
|
241
242
|
}
|