Class: Rscons::Cli

Inherits:
Object
  • Object
show all
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

Instance Method Details

#run(argv) ⇒ void

This method returns an undefined value.

Run the Rscons CLI.

Parameters:

  • argv (Array)

    Command-line parameters.



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