Method: Puppet::Util::Settings#optparse_addargs

Defined in:
lib/vendor/puppet/util/settings.rb

#optparse_addargs(options) ⇒ Object

Generate the list of valid arguments, in a format that OptionParser can understand, and add them to the passed option list.



42
43
44
45
46
47
48
49
# File 'lib/vendor/puppet/util/settings.rb', line 42

def optparse_addargs(options)
  # Add all of the config parameters as valid options.
  self.each { |name, setting|
    options << setting.optparse_args
  }

  options
end