Method: OptionParser#order
- Defined in:
- lib/llm/shell/internal/optparse/lib/optparse.rb
#order(*argv, **keywords, &nonopt) ⇒ Object
Parses command line arguments argv in order. When a block is given, each non-option argument is yielded. When optional into keyword argument is provided, the parsed option values are stored there via []= method (so it can be Hash, or OpenStruct, or other similar object).
Returns the rest of argv left unparsed.
1720 1721 1722 1723 |
# File 'lib/llm/shell/internal/optparse/lib/optparse.rb', line 1720 def order(*argv, **keywords, &nonopt) argv = argv[0].dup if argv.size == 1 and Array === argv[0] order!(argv, **keywords, &nonopt) end |