lib/sawarineko/option.rb
def add_options(opts)
      opts.on('-e', '--encoding ENCODING',
              'Specify the encoding of input.') do |encoding|
        @options[:encoding] = encoding
      end
    end
# Add command line options.
#
# opts - An OptionParser object to add options.
#
# Returns nothing.
Add command line options.
opts - An OptionParser object to add options.

Returns nothing.
Add command line options . opts - An OptionParser object to add options . Returns nothing .
def add_options(opts)
      opts.on('-e', '--encoding ENCODING',
              'Specify the encoding of input.') do |encoding|
        @options[:encoding] = encoding
      end
    end
def add_options ( opts ) opts . on ( '-e' , '--encoding ENCODING' , 'Specify the encoding of input.' ) do | encoding | @options [ :encoding ] = encoding end end
Add command line options.
Add command line options .
opts