1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 12:43:52 +00:00

Print input when validation fails (#516)

Co-authored-by: Dominik Steinberger <open-source-libraries@steinberger.io>
This commit is contained in:
Dominik Steinberger 2020-09-30 14:57:16 +02:00 committed by GitHub
parent c1666528ef
commit d3b0b73118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -746,9 +746,7 @@ class IsMember : public Validator {
} }
// If you reach this point, the result was not found // If you reach this point, the result was not found
std::string out(" not in "); return input + " not in " + detail::generate_set(detail::smart_deref(set));
out += detail::generate_set(detail::smart_deref(set));
return out;
}; };
} }