Class: LogView::OptParser
- Inherits:
-
Object
- Object
- LogView::OptParser
- Includes:
- Colors
- Defined in:
- lib/log_view/option_parser.rb
Constant Summary
Constants included from Colors
Instance Method Summary collapse
-
#initialize ⇒ OptParser
constructor
A new instance of OptParser.
- #parse(args, config) ⇒ Object
Methods included from Colors
Constructor Details
#initialize ⇒ OptParser
Returns a new instance of OptParser.
5 6 7 8 |
# File 'lib/log_view/option_parser.rb', line 5 def initialize = OpenStruct.new apply_defaults end |
Instance Method Details
#parse(args, config) ⇒ Object
10 11 12 13 14 |
# File 'lib/log_view/option_parser.rb', line 10 def parse args, config opt_parser = new_opt_parser opt_parser.parse!(args) generate_config config end |