Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Commit

Permalink
show help when command is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mchelen committed Aug 5, 2015
1 parent e4a6285 commit a6748d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/dpm
Expand Up @@ -91,6 +91,9 @@ if (argv._[0] === 'init') {
} else {
console.log(optimist.help());
}
} else if (!argv._[0]){
console.log(optimist.help());
_fail(new Error('missing command'));
} else {
_fail(new Error('invalid command'));
};
Expand Down

0 comments on commit a6748d9

Please sign in to comment.