Class: Rscons::Cli
- Inherits:
-
Object
- Object
- 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]
Instance Method Summary collapse
-
#run(argv) ⇒ void
Run the Rscons CLI.
Instance Method Details
#run(argv) ⇒ void
This method returns an undefined value.
Run the Rscons CLI.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rscons/cli.rb', line 17 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 |