bin/brakeman in brakeman-2.6.1 vs bin/brakeman in brakeman-2.6.2
- old
+ new
@@ -15,11 +15,11 @@
exit -1
end
#Exit early for these options
if options[:list_checks]
- Brakeman.list_checks
+ Brakeman.list_checks options
exit
elsif options[:create_config]
Brakeman.dump_config options
exit
elsif options[:show_help]
@@ -34,12 +34,12 @@
end
#Set application path according to the commandline arguments
unless options[:app_path]
if ARGV[-1].nil?
- options[:app_path] = File.expand_path "."
+ options[:app_path] = "."
else
- options[:app_path] = File.expand_path ARGV[-1]
+ options[:app_path] = ARGV[-1]
end
end
trap("INT") do
$stderr.puts "\nInterrupted - exiting."