Method: OptionParser#permute

Defined in:
lib/optparse.rb

#permute(*argv, **keywords) ⇒ Object

Parses command line arguments argv in permutation mode and returns list of non-option arguments. 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).



1819
1820
1821
1822
# File 'lib/optparse.rb', line 1819

def permute(*argv, **keywords)
  argv = argv[0].dup if argv.size == 1 and Array === argv[0]
  permute!(argv, **keywords)
end