set_error(type, message)
protected
Set an error (protected).
Show source
def set_error(type, message)
$deferr.print("#{$0}: #{message}\n") if !@quiet
@error = type
@error_message = message
@canonical_names = nil
@argument_flags = nil
@rest_singles = nil
@non_option_arguments = nil
raise type, message
end