Skip to content

Commit

Permalink
feat: show help when no arguments given
Browse files Browse the repository at this point in the history
  • Loading branch information
trs committed Nov 24, 2017
1 parent 4e36efb commit 540d4f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function setup(argv) {
.action(use.handle);

program.parse(argv);

if (!process.argv.slice(2).length) program.outputHelp();
}

module.exports = setup;

0 comments on commit 540d4f4

Please sign in to comment.