# HG changeset patch # User Nattee Niparnan # Date 2017-01-23 16:21:20 # Node ID 4f1f5f158cc9d915fd9d1032f45f62808e8f847c # Parent da875364b006a714601fba5b67d9ce997bfed6ca fix options bugs diff --git a/load_testcase b/load_testcase --- a/load_testcase +++ b/load_testcase @@ -20,7 +20,7 @@ def process_options_and_stop_file # Process 'help' option - if (ARGV.length==1) and (/help/.match(ARGV[0])) + if (ARGV.length == 0) or ((ARGV.length==1) and (/help/.match(ARGV[0]))) display_manual exit(0) end @@ -74,7 +74,7 @@ require RAILS_ROOT + '/config/environment' if options[:all] - Problem.all.each { |prob| process_problem(prob,options[:all]) } + Problem.all.each { |prob| process_problem(prob,options[:dry_run]) } else ARGV.each do |name| prob = Problem.find_by(name: name)