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

Class Method Details

.run(argv) ⇒ void

This method returns an undefined value.

Run the Rscons CLI.

Parameters:

  • argv (Array)

    Command-line parameters.



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.message
    $stderr.puts USAGE
    exit 2
  end
end