From 5c46026ea58afb35de3ae45db91db781705b277e Mon Sep 17 00:00:00 2001 From: zawz Date: Tue, 14 Jan 2020 16:13:17 +0100 Subject: [PATCH] options: fix missing error_type --- src/options.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/options.cpp b/src/options.cpp index cd9dabd..6805f95 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -6,9 +6,10 @@ ztd::option_error::option_error(error_type type, const std::string& option) { opt=option; + errtype=type; switch(type) { - case unknown_option : msg = "Unkown option: " + opt; break; + case unknown_option : msg = "Unknown option: " + opt; break; case takes_no_arg : msg = "Option " + opt + " doesn't take an argument"; break; case missing_arg : msg = "Option " + opt + " needs an argument"; break; }