Method: ToolOpts.create_parser
- Defined in:
- lib/shed/opts/tool_opts.rb
.create_parser ⇒ Object
Create and return the options parser with the default header.
48 49 50 51 52 53 54 55 |
# File 'lib/shed/opts/tool_opts.rb', line 48 def self.create_parser op = OptionParser.new op. = "Usage: #{name} [options]" op.separator "" op.separator "Options:" op end |