Method: Puppet::Util::Settings#addargs
- Defined in:
- lib/vendor/puppet/util/settings.rb
#addargs(options) ⇒ Object
Generate the list of valid arguments, in a format that GetoptLong can understand, and add them to the passed option list.
31 32 33 34 35 36 37 38 |
# File 'lib/vendor/puppet/util/settings.rb', line 31 def addargs() # Add all of the config parameters as valid options. self.each { |name, setting| setting.getopt_args.each { |args| << args } } end |