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:
parent
c1666528ef
commit
d3b0b73118
@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user