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

Commit

Permalink
Merge pull request #40 from okfn/missing_command
Browse files Browse the repository at this point in the history
show help when command is missing
  • Loading branch information
rufuspollock committed Aug 5, 2015
2 parents e19dc3f + a6748d9 commit 005c854
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 005c854

Please sign in to comment.