Skip to content

Commit

Permalink
feat(#7): handle friendly cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Amine-H authored and bassihassan committed Mar 5, 2018
1 parent 1460df4 commit 2f965a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions generators/BaseGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ class BaseGenerator extends Generator {
this._abort({ showHelp: true });
} else {
const lastNode = command.lastNode();
if(lastNode.isLeaf) {
this.argument(lastNode.name, lastNode.config);
} else {
if(!lastNode.isLeaf) {
command.lastNodeChildren().forEach(node => this.argument(node.name, node.config));
this._abort({ showHelp: true });
}
Expand Down

0 comments on commit 2f965a6

Please sign in to comment.