1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00

Option check method error (#320)

This commit is contained in:
fpeng1985 2019-09-21 03:17:00 +08:00 committed by Henry Schreiner
parent 09c169c2d9
commit 8ecce8fd2c

View File

@ -351,7 +351,7 @@ class Option : public OptionBase<Option> {
validator.non_modifying();
validators_.push_back(std::move(validator));
if(!validator_name.empty())
validators_.front().name(validator_name);
validators_.back().name(validator_name);
return this;
}