method
handle_options
v2_1_10 -
Show latest stable
- Class:
Rake::Application
handle_options()public
Read and handle the command line options.
# File lib/rake/application.rb, line 570
def handle_options
options.rakelib = ['rakelib']
options.trace_output = $stderr
OptionParser.new do |opts|
opts.banner = "#{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
standard_rake_options.each { |args| opts.on(*args) }
opts.environment('RAKEOPT')
end.parse!
end Related methods
- Instance methods
- add_import
- add_loader
- collect_tasks
- default_task_name
- deprecate
- display_error_message
- display_prerequisites
- display_tasks_and_comments
- dynamic_width
- dynamic_width_stty
- dynamic_width_tput
- exit_because_of_exception
- find_rakefile_location
- handle_options
- have_rakefile
- init
- invoke_task
- load_imports
- load_rakefile
- options
- parse_task_string
- print_rakefile_directory
- rake_require
- rakefile_location
- raw_load_rakefile
- run
- run_with_threads
- standard_exception_handling
- standard_rake_options
- system_dir
- terminal_width
- thread_pool
- top_level
- trace
- truncate
- truncate_output?
- tty_output=
- tty_output?
- unix?
- windows?
- Class methods
- new
- Private methods
-
glob -
has_chain? -
select_tasks_to_show -
select_trace_output -
sort_options -
standard_system_dir