LDMD: Fix handling unknown switches from DFLAGS.

This commit is contained in:
David Nadlinger
2012-09-29 22:44:48 +02:00
parent c0980de3af
commit 407e534504

View File

@@ -685,11 +685,11 @@ Params parseArgs(int originalArgc, char** originalArgv, ls::Path ldcPath)
else
{
Lerror:
result.unknownSwitches.push_back(argv[i]);
result.unknownSwitches.push_back(p);
continue;
Lnoarg:
error("argument expected for switch '%s'", argv[i]);
error("argument expected for switch '%s'", p);
continue;
}
}