Class: HoneyFormat::CLI
- Inherits:
-
Object
- Object
- HoneyFormat::CLI
- Defined in:
- lib/honey_format/cli/cli.rb
Overview
Main CLI
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
from command line arguments.
Instance Method Summary collapse
-
#initialize(argv: ARGV, io: STDOUT) ⇒ CLI
constructor
Instantiate the CLI.
- #usage ⇒ Object
Constructor Details
#initialize(argv: ARGV, io: STDOUT) ⇒ CLI
Instantiate the CLI
13 14 15 16 17 |
# File 'lib/honey_format/cli/cli.rb', line 13 def initialize(argv: ARGV, io: STDOUT) @io = io @parser = nil = (argv: argv.dup) end |
Instance Attribute Details
#options ⇒ Hash (readonly)
from command line arguments
8 9 10 |
# File 'lib/honey_format/cli/cli.rb', line 8 def end |
Instance Method Details
#usage ⇒ Object
19 20 21 |
# File 'lib/honey_format/cli/cli.rb', line 19 def usage @parser.to_s end |