Method: Subcommands#global_options

Defined in:
lib/subcommand.rb

#global_optionsObject

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 global_options
  if !defined? @global
    @global = OptionParser.new do |opts|
      yield opts
    end
  else
    yield @global
  end
end