lib/clin/option_parser.rb
# Handle the case where the option was not defined in the command.
# @param name [String] name used in the command.
# @param value [String] Value of the option if applicable.
# Add [UnknownOptionError] if the command doesn't allow unknown options.
Handle the case where the option was not defined in the command.
Handle the case where the option was not defined in the command .
def handle_unknown_option(name, value)
    unless @command.skip_options?
      add_error Clin::UnknownOptionError.new(name)
      return
    end
    value = complete(value)
    @skipped_options += [name, value]
  end
def handle_unknown_option ( name , value ) unless @command . skip_options? add_error Clin :: UnknownOptionError . new ( name ) return end value = complete ( value ) @skipped_options += [ name , value ] end
Handle the case where the option was not defined in the command.
Handle the case where the option was not defined in the command .
name
name used in the command.
name used in the command .
value
Value of the option if applicable. Add [UnknownOptionError] if the command doesn't allow unknown options.
Value of the option if applicable . Add [ UnknownOptionError ] if the command doesn ' t allow unknown options .