Class: Loupe::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/loupe/cli.rb

Overview

Cli

The Cli class defines all available commands and their options

Constant Summary collapse

USAGE =

Returns:

  • (String)
<<~TEXT
  Usage: [test_list] [options]
TEXT

Instance Method Summary collapse

Constructor Details

#initialize(args = ARGV) ⇒ void



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/loupe/cli.rb', line 17

def initialize(args = ARGV)
  @options = {
    color: true,
    interactive: true,
    mode: :ractor
  }

  parse_options(@options, args)
  @options.freeze

  @files = args
  start
end