Module: Inq::Exe

Defined in:
lib/inq/exe.rb

Overview

A module which implements the entire command-line interface for Inq.

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/inq/exe.rb', line 12

def self.run(argv)
  cli = parse_args(argv)
  options = cli.options

  abort cli.help_text if options[:help]
  abort Inq::VERSION_STRING if options[:version]

  execute(options)
end