Skip to content

Commit

Permalink
fix: fix help command without option (#211)
Browse files Browse the repository at this point in the history
* fix: fix help command without option

* feat: console warn if current command has not help message
  • Loading branch information
fXy-during committed Apr 9, 2020
1 parent 065490d commit 754348f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/feflow-cli/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ export default class Feflow {
}

if(optionDescrition.optionList.length == 0) {
return this.call("help", ctx)
ctx.logger.warn(`Current command dosen't have help message`);
return;
}

const sections = [];
Expand Down

0 comments on commit 754348f

Please sign in to comment.