Method: Rake::Application#handle_options
- Defined in:
- lib/rake/application.rb
#handle_options ⇒ Object
Read and handle the command line options.
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/rake/application.rb', line 570 def .rakelib = ['rakelib'] .trace_output = $stderr OptionParser.new do |opts| opts. = "#{Rake.application.name} [-f rakefile] {options} targets..." opts.separator "" opts.separator "Options are ..." opts.on_tail("-h", "--help", "-H", "Display this help message.") do puts opts exit end .each { |args| opts.on(*args) } opts.environment('RAKEOPT') end.parse! end |