# File lib/rake.rb, line 2276
2276:     def handle_options
2277:       options.rakelib = ['rakelib']
2278: 
2279:       opts = OptionParser.new
2280:       opts.banner = "rake [-f rakefile] {options} targets..."
2281:       opts.separator ""
2282:       opts.separator "Options are ..."
2283:       
2284:       opts.on_tail("-h", "--help", "-H", "Display this help message.") do
2285:         puts opts
2286:         exit
2287:       end
2288:       
2289:       standard_rake_options.each { |args| opts.on(*args) }
2290:       parsed_argv = opts.parse(ARGV)
2291: 
2292:       # If class namespaces are requested, set the global options
2293:       # according to the values in the options structure.
2294:       if options.classic_namespace
2295:         $show_tasks = options.show_tasks
2296:         $show_prereqs = options.show_prereqs
2297:         $trace = options.trace
2298:         $dryrun = options.dryrun
2299:         $silent = options.silent
2300:       end
2301:       parsed_argv
2302:     end