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 0553d32 commit 55b9146Copy full SHA for 55b9146
lib/command.js
@@ -271,8 +271,8 @@ class Command extends EventEmitter {
271
- specify the name in Command constructor or using .name()`);
272
}
273
if (cmd.parent) {
274
- throw new Error(`'${cmd._name}' cannot be added using .addCommand()
275
-- it already has a parent command`);
+ throw new Error(`Command '${cmd.name()}' passed to .addCommand() already has a parent
+- subcommands cannot be shared`);
276
277
278
opts = opts || {};
0 commit comments