Skip to content

Commit

Permalink
Accept -=key:
Browse files Browse the repository at this point in the history
Driver did not accept, e.g., -=lim:, despite being documented
  • Loading branch information
glebbelov committed Jan 12, 2024
1 parent f43a2ac commit ff311a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,15 @@ bool SolverAppOptionParser::ShowSolverOptionsASL() {
}
return false;
}

bool contains(const char* name, const char* substr) {
std::string n(name);
std::string sub = fmt::format("{}:", substr);
std::string sub {substr};
if (sub.empty() || sub.back()!=':') // does not end with ':'
sub.push_back(':');
return n.find(sub) != std::string::npos;


}

bool SolverAppOptionParser::ShowSolverOptions(const char* param) {
fmt::MemoryWriter writer;
const char* option_header = solver_.option_header();
Expand Down

0 comments on commit ff311a7

Please sign in to comment.