# File lib/rake.rb, line 2311
2311:     def handle_options
2312:       options.rakelib = ['rakelib']
2313: 
2314:       OptionParser.new do |opts|
2315:         opts.banner = "rake [-f rakefile] {options} targets..."
2316:         opts.separator ""
2317:         opts.separator "Options are ..."
2318: 
2319:         opts.on_tail("-h", "--help", "-H", "Display this help message.") do
2320:           puts opts
2321:           exit
2322:         end
2323: 
2324:         standard_rake_options.each { |args| opts.on(*args) }
2325:       end.parse!
2326: 
2327:       # If class namespaces are requested, set the global options
2328:       # according to the values in the options structure.
2329:       if options.classic_namespace
2330:         $show_tasks = options.show_tasks
2331:         $show_prereqs = options.show_prereqs
2332:         $trace = options.trace
2333:         $dryrun = options.dryrun
2334:         $silent = options.silent
2335:       end
2336:     end