···2233def parse_options(argv)
44 options = {
55- verbose: false
55+ verbose: false,
66+ relays: nil,
77+ jetstreams: nil
68 }
79810 parser = OptionParser.new do |opts|
···10121113 opts.on('-d', '--duration SECONDS', Integer, 'Duration of the test in seconds') do |seconds|
1214 options[:duration] = seconds
1515+ end
1616+1717+ opts.on('-r', '--relays HOSTS', 'Only connect to these relays; can be comma-separated or passed multiple times') do |hosts|
1818+ options[:relays] ||= []
1919+ options[:relays] += hosts.split(',').map(&:strip).reject(&:empty?)
2020+ end
2121+2222+ opts.on('-j', '--jetstreams HOSTS', 'Only connect to these jetstreams; can be comma-separated or passed multiple times') do |hosts|
2323+ options[:jetstreams] ||= []
2424+ options[:jetstreams] += hosts.split(',').map(&:strip).reject(&:empty?)
1325 end
14261527 opts.on('-v', '--verbose', 'Report the statistics to stdout during the test') do