APIdock / Ruby
/
method

parse!

ruby latest stable - Class: OptionParser
parse!(argv = default_argv, into: nil)
public

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

# File lib/optparse.rb, line 1644
 def parse!(argv = default_argv, into: nil)
 if ENV.include?('POSIXLY_CORRECT')
 order!(argv, into: into)
 else
 permute!(argv, into: into)
 end
 end

AltStyle によって変換されたページ (->オリジナル) /