# File lib/puppet/application.rb, line 360
360:   def handlearg(opt, arg)
361:     # rewrite --[no-]option to --no-option if that's what was given
362:     if opt =~ /\[no-\]/ and !arg
363:       opt = opt.gsub(/\[no-\]/,'no-')
364:     end
365:     # otherwise remove the [no-] prefix to not confuse everybody
366:     opt = opt.gsub(/\[no-\]/, '')
367:     unless respond_to?(:handle_unknown) and send(:handle_unknown, opt, arg)
368:       # Puppet.settings.handlearg doesn't handle direct true/false :-)
369:       if arg.is_a?(FalseClass)
370:         arg = "false"
371:       elsif arg.is_a?(TrueClass)
372:         arg = "true"
373:       end
374:       Puppet.settings.handlearg(opt, arg)
375:     end
376:   end