Module: Speculations::CLI

Extended by:
CLI
Included in:
CLI
Defined in:
lib/speculations/cli.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/speculations/cli.rb', line 4

def run args
  loop do
  case args.first
    when "-h", "--help"
      _usage
    when "-v", "--version"
      _version
    else
      return _compile_and_maybe_run args
    end
  end
end