Module: OptparseLite::OptHelper
- Included in:
- OptParser, OptparseLite::OptParser::Response, OptparseLite::OptParser::UnparsedParamters
- Defined in:
- lib/optparse-lite.rb
Instance Method Summary collapse
-
#dashes(key) ⇒ Object
hack, could be done in spec instead somehow.
Instance Method Details
#dashes(key) ⇒ Object
hack, could be done in spec instead somehow
674 675 676 |
# File 'lib/optparse-lite.rb', line 674 def dashes key # hack, could be done in spec instead somehow key.length == 1 ? "-#{key}" : "--#{key}" end |