Method: Chid::Command.map_options_with_values
- Defined in:
- lib/chid/command.rb
.map_options_with_values(argv) ⇒ Hash<String, Array>
Returns a mapped options with your values from @argv
57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/chid/command.rb', line 57 def (argv) return argv.reduce({}) do |, arg| = if arg_is_an_option?(arg) [arg] = [] next() end (, arg) end end |