24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/js_spec/client.rb', line 24
def run_argv(argv)
params = {}
parser = OptionParser.new do |o|
o.banner = "JsSpec Runner"
o.banner << "\nUsage: #{$0} [options] [-- untouched arguments]"
o.on
o.on('-h', '--selenium_host=SELENIUM_HOST', "The host name of the Selenium Server relative to where this file is executed") do |host|
params[:selenium_host] = host
end
o.on('-p', '--selenium_port=SELENIUM_PORT', "The port of the Selenium Server relative to where this file is executed") do |port|
params[:selenium_port] = port
end
o.on('-u', '--spec_url=SPEC_URL', "The url of the js spec server, relative to the browsers running via the Selenium Server") do |spec_url|
params[:spec_url] = spec_url
end
o.on_tail
end
parser.order!(argv)
run params
end
|