We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac9c1f commit 49b9211Copy full SHA for 49b9211
include/CLI/impl/App_inl.hpp
@@ -170,9 +170,8 @@ CLI11_INLINE Option *App::add_option(std::string option_name,
170
top_level_parent = top_level_parent->parent_;
171
}
172
173
- if(std::find_if(std::begin(options_), std::end(options_), [&myopt](const Option_p &v) {
174
- return *v == myopt;
175
- }) == std::end(options_)) {
+ if(std::find_if(std::begin(options_), std::end(options_), [&myopt](const Option_p &v) { return *v == myopt; }) ==
+ std::end(options_)) {
176
if(myopt.lnames_.empty() && myopt.snames_.empty()) {
177
// if the option is positional only there is additional potential for ambiguities in config files and needs
178
// to be checked
0 commit comments