Class: Ing::OptionParsers::Trollop
- Inherits:
-
Object
- Object
- Ing::OptionParsers::Trollop
- Defined in:
- lib/ing/option_parsers/trollop.rb
Instance Method Summary collapse
Instance Method Details
#describe ⇒ Object
19 20 21 22 23 |
# File 'lib/ing/option_parsers/trollop.rb', line 19 def describe s=StringIO.new parser. s s.rewind; s.read end |
#help ⇒ Object
25 26 27 28 29 |
# File 'lib/ing/option_parsers/trollop.rb', line 25 def help s=StringIO.new parser.educate s s.rewind; s.read end |
#parse!(args) ⇒ Object
15 16 17 |
# File 'lib/ing/option_parsers/trollop.rb', line 15 def parse!(args) ::Trollop.with_standard_exception_handling(parser) { parser.parse(args) } end |