Class: GemBootstrap::OptionParser Private
- Inherits:
-
Object
- Object
- GemBootstrap::OptionParser
- Defined in:
- lib/gem-bootstrap/option_parser.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #parse(args) ⇒ Object private
Instance Method Details
#parse(args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 14 15 16 17 |
# File 'lib/gem-bootstrap/option_parser.rb', line 9 def parse(args) Slop.parse(args, banner: ) do |o| o.string '--author', 'Author name' o.string '--email', 'Author email' o.string '--github-username' o.bool '--source', 'Only generate source' o.bool '-h', '--help' end end |