Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/nonius/detail/argparse.h++
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ namespace nonius {
bool matches_long(std::string const& s) const {
return std::get<0>(long_separator(s));
}
bool matches_long(std::string const& s, std::string& argument) const {
bool matches_long(std::string const& s, std::string& arg) const {
bool match; std::string::const_iterator it;
std::tie(match, it) = long_separator(s);
if(match && it != s.end()) {
if(*it == '=') argument.assign(it+1, s.end());
if(*it == '=') arg.assign(it+1, s.end());
else return false;
}
return match;
Expand Down