Module: Rscons::Cli
- Defined in:
- lib/rscons/cli.rb
Overview
Command-Line Interface functionality.
Constant Summary collapse
- DEFAULT_RSCONSCRIPTS =
Default files to look for to execute if none specified.
%w[Rsconscript Rsconscript.rb]
Class Method Summary collapse
-
.run(argv) ⇒ void
Run the Rscons CLI.
Class Method Details
.run(argv) ⇒ void
This method returns an undefined value.
Run the Rscons CLI.
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/rscons/cli.rb', line 47 def run(argv) argv = argv.dup begin exit run_toplevel(argv) rescue OptionParser::InvalidOption => io $stderr.puts io. $stderr.puts USAGE exit 2 end end |