Class: Loupe::Cli
- Inherits:
-
Object
- Object
- Loupe::Cli
- Defined in:
- lib/loupe/cli.rb
Overview
Cli
The Cli class defines all available commands and their options
Constant Summary collapse
- USAGE =
<<~TEXT Usage: [test_list] [options] TEXT
Instance Method Summary collapse
- #initialize(args = ARGV) ⇒ void constructor
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 } (@options, args) @options.freeze @files = args start end |