Permalink
Browse files

Exit with -1 on option parsing failure

  • Loading branch information...
1 parent a96f677 commit 07df94a7082e5ff6adfb067cd34d0b3bf5e22b21 @presidentbeef presidentbeef committed with Dave Worth Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/brakeman
View
@@ -12,7 +12,7 @@ begin
rescue OptionParser::ParseError => e
$stderr.puts e.message.capitalize
$stderr.puts "Please see `brakeman --help` for valid options"
- exit
+ exit -1
end
#Exit early for these options

0 comments on commit 07df94a

Please sign in to comment.