Skip to content

Commit 8ecce8f

Browse files
fpeng1985henryiii
authored andcommitted
Option check method error (#320)
1 parent 09c169c commit 8ecce8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/CLI/Option.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class Option : public OptionBase<Option> {
351351
validator.non_modifying();
352352
validators_.push_back(std::move(validator));
353353
if(!validator_name.empty())
354-
validators_.front().name(validator_name);
354+
validators_.back().name(validator_name);
355355
return this;
356356
}
357357

0 commit comments

Comments
 (0)