# File lib/rake.rb, line 2104
2104:     def handle_options
2105:       options.rakelib = ['rakelib']
2106: 
2107:       opts = GetoptLong.new(*command_line_options)
2108:       opts.each { |opt, value| do_option(opt, value) }
2109: 
2110:       # If class namespaces are requested, set the global options
2111:       # according to the values in the options structure.
2112:       if options.classic_namespace
2113:         $show_tasks = options.show_tasks
2114:         $show_prereqs = options.show_prereqs
2115:         $trace = options.trace
2116:         $dryrun = options.dryrun
2117:         $silent = options.silent
2118:       end
2119:     rescue NoMethodError => ex
2120:       raise GetoptLong::InvalidOption, "While parsing options, error = #{ex.class}:#{ex.message}"
2121:     end