Permalink
Browse files

Fixed help/usage output for run-test script

  • Loading branch information...
radiantcapsule committed Jun 21, 2012
1 parent b405dce commit c28f9f1f7db0ac59b5a36479f95bfc5b8faeadb7
Showing with 3 additions and 3 deletions.
  1. +3 −3 run-test
View
@@ -9,20 +9,20 @@ options = OpenStruct.new
options.env_vars = {}
opts_parser = OptionParser.new do |opts|
- opts.banner = "USAGE: run-test-script <app bundle> <test script> <output directory> [device_id] [pass-through args...]"
+ opts.banner = "USAGE: run-test-script <app bundle> <test script> <output directory> [optional args]"
opts.on("-d", "--device [DEVICE]", "Device UDID to run test against") do |dev|
options.device = dev
end
- opts.on("-e", "--environment [ENV]") do |env|
+ opts.on("-e", "--environment [ENV]", "Pass variables in the form of name=value") do |env|
key, value = env.split '='
options.env_vars[key] = value
end
end
unless ARGV.length >= 3
- opts_parser.help
+ STDERR.puts opts_parser.help
exit 1
end

0 comments on commit c28f9f1

Please sign in to comment.