Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(main): exit if no package was parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed May 30, 2017
1 parent db7a0e4 commit cdb579d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const PATH_SEP = process.platform === 'win32' ? ';' : ':'
main(parseArgs())

function main (argv) {
if (!argv.command) {
if (!argv.command || !argv.package) {
console.error('\nERROR: You must supply a command.\n')
yargs.showHelp()
process.exit(1)
Expand Down

0 comments on commit cdb579d

Please sign in to comment.