Method: Subcommands#global_options
- Defined in:
- lib/subcommand.rb
#global_options ⇒ Object
specify global options and banner and description Yields the optionparser
84 85 86 87 88 89 90 91 92 |
# File 'lib/subcommand.rb', line 84 def if !defined? @global @global = OptionParser.new do |opts| yield opts end else yield @global end end |