Skip to content
instance method

OptionParser#order!

(?::Array[::String] argv, ?into: ::OptionParser::_Intoable) ?{ (::String) -> void } -> ::Array[::String]
order!(argv = default_argv, into: nil, **keywords, &nonopt)

Same as order, but removes switches destructively. Non-option arguments remain in argv.

See also #order #parse #on_tail #parse! also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0