method
handle_options
v1_9_3_125 -
Show latest stable
- Class:
Rake::Application
handle_options()public
Read and handle the command line options.
# File lib/rake/application.rb, line 422
def handle_options
options.rakelib = ['rakelib']
OptionParser.new do |opts|
opts.banner = "rake [-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!
# If class namespaces are requested, set the global options
# according to the values in the options structure.
if options.classic_namespace
$show_tasks = options.show_tasks
$show_prereqs = options.show_prereqs
$trace = options.trace
$dryrun = options.dryrun
$silent = options.silent
end
end Related methods
- Instance methods
- add_import
- add_loader
- collect_tasks
- const_warning
- deprecate
- display_error_message
- display_prerequisites
- display_tasks_and_comments
- dynamic_width
- dynamic_width_stty
- dynamic_width_tput
- 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
- standard_exception_handling
- standard_rake_options
- system_dir
- terminal_width
- top_level
- truncate
- truncate_output?
- tty_output=
- tty_output?
- unix?
- windows?
- Class methods
- new
- Private methods
-
glob -
has_chain? -
standard_system_dir