90
Output the docs for all of the reference types. In 'rdoc'
91
modes, this also outputs documentation for all resources
90
Output the docs for all of the reference types. In 'rdoc' mode, this also
91
outputs documentation for all resources.
94
94
Print this help message
97
Specifies the directory where to output the rdoc
98
documentation in 'rdoc' mode.
97
Used only in 'rdoc' mode. The directory to which the rdoc output should
101
Determine the output mode. Valid modes are 'text', 'pdf' and
102
'rdoc'. The 'pdf' mode creates PDF formatted files in the
103
/tmp directory. The default mode is 'text'. In 'rdoc' mode
104
you must provide 'manifests-path'
101
Determine the output mode. Valid modes are 'text', 'pdf' and 'rdoc'. The 'pdf'
102
mode creates PDF formatted files in the /tmp directory. The default mode is
103
'text'. In 'rdoc' mode you must provide 'manifests-path'
107
Build a particular reference. Get a list of references by
108
running 'puppet doc --list'.
106
Build a particular reference. Get a list of references by running
111
Used only in 'rdoc' mode. It sets the charset used in the
110
Used only in 'rdoc' mode. It sets the charset used in the html files produced.
113
Used only in 'rdoc' mode. The directory to scan for stand-alone manifests.
114
If not supplied, puppet doc will use the manifestdir from puppet.conf.
117
Used only in 'rdoc' mode. The directory or directories to scan for modules.
118
If not supplied, puppet doc will use the modulepath from puppet.conf.
121
Used only in 'rdoc' mode. The configuration environment from which
122
to read the modulepath and manifestdir settings, when reading said settings
123
from puppet.conf. Due to a known bug, this option is not currently effective.
241
252
@unknown_args.each do |option|
242
253
# force absolute path for modulepath when passed on commandline
243
254
if option[:opt]=="--modulepath" or option[:opt] == "--manifestdir"
244
option[:arg] = option[:arg].split(':').collect { |p| File.expand_path(p) }.join(':')
255
option[:arg] = option[:arg].split(File::PATH_SEPARATOR).collect { |p| File.expand_path(p) }.join(File::PATH_SEPARATOR)
246
257
Puppet.settings.handlearg(option[:opt], option[:arg])