Skip to content

Commit

Permalink
Option check method error (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpeng1985 authored and henryiii committed Sep 20, 2019
1 parent 09c169c commit 8ecce8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/CLI/Option.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8ecce8f

Please sign in to comment.