options: fix missing error_type

This commit is contained in:
zawz 2020-01-14 16:13:17 +01:00
parent 1311bd7a64
commit 5c46026ea5

View file

@ -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;
}