# File lib/puppet/application/doc.rb, line 151
151:   def setup_rdoc(dummy_argument=:work_arround_for_ruby_GC_bug)
152:     # consume the unknown options
153:     # and feed them as settings
154:     if @unknown_args.size > 0
155:       @unknown_args.each do |option|
156:         # force absolute path for modulepath when passed on commandline
157:         if option[:opt]=="--modulepath" or option[:opt] == "--manifestdir"
158:           option[:arg] = option[:arg].split(':').collect { |p| File.expand_path(p) }.join(':')
159:         end
160:         Puppet.settings.handlearg(option[:opt], option[:arg])
161:       end
162:     end
163: 
164:     # Now parse the config
165:     Puppet.parse_config
166: 
167:     # Handle the logging settings.
168:     if options[:debug] or options[:verbose]
169:       if options[:debug]
170:         Puppet::Util::Log.level = :debug
171:       else
172:         Puppet::Util::Log.level = :info
173:       end
174: 
175:       Puppet::Util::Log.newdestination(:console)
176:     end
177:   end