Permalink
Browse files

Normalize case of -equ/-strequ argument definition names

  • Loading branch information...
sp1187 committed Jul 21, 2018
1 parent 9efe336 commit 8632b9ffd26336b588d368fcbca1c6457510af87
Showing with 2 additions and 0 deletions.
  1. +2 −0 Main/main.cpp
@@ -78,13 +78,15 @@ int wmain(int argc, wchar_t* argv[])
{
EquationDefinition def;
def.name = arguments[argpos + 1];
std::transform(def.name.begin(), def.name.end(), def.name.begin(), ::towlower);
def.value = arguments[argpos + 2];
parameters.equList.push_back(def);
argpos += 3;
} else if (arguments[argpos] == L"-strequ" && argpos + 2 < arguments.size())
{
EquationDefinition def;
def.name = arguments[argpos + 1];
std::transform(def.name.begin(), def.name.end(), def.name.begin(), ::towlower);
def.value = formatString(L"\"%s\"", arguments[argpos + 2]);
parameters.equList.push_back(def);
argpos += 3;

0 comments on commit 8632b9f

Please sign in to comment.