Skip to content

Commit

Permalink
Merge pull request #355 from cniethammer/fix-option-parser
Browse files Browse the repository at this point in the history
Fix option parser's long option handling
  • Loading branch information
cniethammer authored Dec 11, 2024
2 parents be67309 + 98597e0 commit 55cccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/OptionParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const Option& OptionParser::lookup_long_opt(const std::string& opt) const {

std::list<std::string> matching;
for (optMap::const_iterator it = _optmap_l.begin(); it != _optmap_l.end(); ++it) {
if (it->first.compare(0, opt.length(), opt) == 0)
if (it->first == opt)
matching.push_back(it->first);
}
if (matching.size() > 1) {
Expand Down

0 comments on commit 55cccdf

Please sign in to comment.