Module: Sunniesnow::Charter::CLI::OptionParserPatch
- Defined in:
- lib/sscharter/cli.rb
Instance Method Summary collapse
Instance Method Details
#order!(argv = default_argv, into: nil, **keywords, &nonopt) ⇒ Object
69 70 71 72 |
# File 'lib/sscharter/cli.rb', line 69 def order!(argv = default_argv, into: nil, **keywords, &nonopt) setter = ->(name, val) {into[name.tr(?-, ?_).to_sym] = val} if into parse_in_order(argv, setter, **keywords, &nonopt) end |