lib/sawarineko/option.rb
# Parse the passed arguments to a Hash.
#
# args - An Array of Strings containing options.
#
# Returns an Array containing a Hash options and an Array of Strings
#   remaining arguments.
Parse the passed arguments to a Hash.
args - An Array of Strings containing options.

Returns an Array containing a Hash options and an Array of Strings
remaining arguments.
Parse the passed arguments to a Hash . args - An Array of Strings containing options . Returns an Array containing a Hash options and an Array of Strings remaining arguments .
def parse(args)
      OptionParser.new do |opts|
        opts.banner = 'Usage: sawarineko [options] [source]'
        add_options(opts)
        add_options_on_tail(opts)
      end.parse!(args)
      [@options, args]
    end
def parse ( args ) OptionParser . new do | opts | opts . banner = 'Usage: sawarineko [options] [source]' add_options ( opts ) add_options_on_tail ( opts ) end . parse! ( args ) [ @options , args ] end
Parse the passed arguments to a Hash.
Parse the passed arguments to a Hash .
args