Module: TestBoosters::CliParser
- Defined in:
- lib/test_boosters/cli_parser.rb
Class Method Summary collapse
Class Method Details
.parse ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/test_boosters/cli_parser.rb', line 5 def parse = {} parser = OptionParser.new do |opts| opts.on("--thread INDEX") do |parameter| thread_index, thread_count, _rest = parameter.split("/") [:thread_index] = thread_index.to_i [:thread_count] = thread_count.to_i end end parser.parse! end |