module Optioneer
  # This class will be instantiated for each individual option registered.
  class Option
    attr_reader :name
    def initialize(name)
      @name = name
      @data = {}
    end

    def short=(short_form)
      @data[:short_form] = short_form
    end

    def long=(long_form)
      @data[:long_form] = long_form
    end

    def argument=(argument)
      @data[:argument] = argument
    end

    def help=(help)
      @data[:help] = help
    end

    def values
      @data
    end
  end
end

module Optioneer
  # an instance will be created for each individual option registered or passed.
  class Option
    attr_reader :name
    def initialize(name, options = {})
      @name = name
      @data = options
    end

    def short=(short_form)
      @data[:short] = short_form
    end

    def long=(long_form)
      @data[:long] = long_form
    end

    def argument=(argument)
      @data[:arg] = argument
    end

    def help=(help)
      @data[:help] = help
    end

    def values
      @data
    end
  end
end

Rename the short, long etc methods
Rename the short, long etc methods

Signed-off-by: Grant Ramsay <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>
