# File lib/puppet/application/puppetdoc.rb, line 194
194:     def setup_rdoc
195:         # consume the unknown options
196:         # and feed them as settings
197:         if @unknown_args.size > 0
198:             @unknown_args.each do |option|
199:                 # force absolute path for modulepath when passed on commandline
200:                 if option[:opt]=="--modulepath" or option[:opt] == "--manifestdir"
201:                     option[:arg] = option[:arg].split(':').collect { |p| File.expand_path(p) }.join(':')
202:                 end
203:                 Puppet.settings.handlearg(option[:opt], option[:arg])
204:             end
205:         end
206: 
207:         # hack to get access to puppetmasterd modulepath and manifestdir
208:         Puppet[:name] = "puppetmasterd"
209:         # Now parse the config
210:         Puppet.parse_config
211: 
212:         # Handle the logging settings.
213:         if options[:debug] or options[:verbose]
214:             if options[:debug]
215:                 Puppet::Util::Log.level = :debug
216:             else
217:                 Puppet::Util::Log.level = :info
218:             end
219: 
220:             Puppet::Util::Log.newdestination(:console)
221:         end
222:     end