Skip to content

Commit

Permalink
Proper error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed May 2, 2012
1 parent 250b225 commit 5829ac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cli.js
Expand Up @@ -104,6 +104,9 @@ while (args.length > 0) {
if (!options.paths) {
options.paths = [];
}
if (v.indexOf('-') === 0) {
throw('Unknown option: ' + v);
}
options.paths.push(v);
}
}
Expand Down

0 comments on commit 5829ac6

Please sign in to comment.