Method: Puppet::Util::Settings::Setting#getopt_args

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

#getopt_argsObject

get the arguments in getopt format



11
12
13
14
15
16
17
# File 'lib/vendor/puppet/util/settings/setting.rb', line 11

def getopt_args
  if short
    [["--#{name}", "-#{short}", GetoptLong::REQUIRED_ARGUMENT]]
  else
    [["--#{name}", GetoptLong::REQUIRED_ARGUMENT]]
  end
end