Class: Endpointer::ArgumentParser
- Inherits:
-
Object
- Object
- Endpointer::ArgumentParser
- Defined in:
- lib/endpointer/argument_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse(arguments) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/endpointer/argument_parser.rb', line 8 def parse(arguments) begin opt_parser.parse(arguments) rescue OptionParser::InvalidOption => e abort "Error: #{e}" end configuration end |