Skip to content

Commit

Permalink
LDMD: Fix handling unknown switches from DFLAGS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Sep 29, 2012
1 parent c0980de commit 407e534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/ldmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 407e534

Please sign in to comment.