# File lib/puppet/application.rb, line 270
270:     def handlearg(opt, arg)
271:         # rewrite --[no-]option to --no-option if that's what was given
272:         if opt =~ /\[no-\]/ and !arg
273:             opt = opt.gsub(/\[no-\]/,'no-')
274:         end
275:         # otherwise remove the [no-] prefix to not confuse everybody
276:         opt = opt.gsub(/\[no-\]/, '')
277:         unless respond_to?(:handle_unknown) and send(:handle_unknown, opt, arg)
278:             # Puppet.settings.handlearg doesn't handle direct true/false :-)
279:             if arg.is_a?(FalseClass)
280:                 arg = "false"
281:             elsif arg.is_a?(TrueClass)
282:                 arg = "true"
283:             end
284:             Puppet.settings.handlearg(opt, arg)
285:         end
286:     end