Skip to content

Commit

Permalink
feat(cli): output help when no arguments are given
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed May 1, 2016
1 parent fc32c4f commit 4adf274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/p-s.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ program
.on('--help', onHelp)
.parse(process.argv)

if (process.argv.length < 3) {
program.help()
}

var scriptsAndArgs = getScriptsAndArgs(program)
var psConfig = getPSConfig()

Expand Down

0 comments on commit 4adf274

Please sign in to comment.