ruby-cli/options-optparse.rb
#
# Return a structure describing the options.
#
Return a structure describing the options.
Return a structure describing the options .
def parse(args)
    @options = ScriptOptions.new
    @args = OptionParser.new do |parser|
      @options.define_options(parser)
      parser.parse!(args)
    end
    @options
  end
def parse ( args ) @options = ScriptOptions . new @args = OptionParser . new do | parser | @options . define_options ( parser ) parser . parse! ( args ) end @options end
Return a structure describing the options.
Return a structure describing the options .
# The options specified on the command line will be collected in # *options*.
args