class Rake::Application
def handle_options
def handle_options options.rakelib = ['rakelib'] opts = GetoptLong.new(*command_line_options) opts.each { |opt, value| do_option(opt, value) } # If class namespaces are requested, set the global options # according to the values in the options structure. if options.classic_namespace $show_tasks = options.show_tasks $show_prereqs = options.show_prereqs $trace = options.trace $dryrun = options.dryrun $silent = options.silent end rescue NoMethodError => ex raise GetoptLong::InvalidOption, "While parsing options, error = #{ex.class}:#{ex.message}" end