Don't pass file name to executable on '-run'.

This commit is contained in:
David Nadlinger
2013-01-04 01:42:01 +01:00
parent 615a2b5839
commit 2f8705f4d6

View File

@@ -317,6 +317,7 @@ int main(int argc, char** argv)
global.params.run = true;
if (!runargs.empty()) {
files.push(mem.strdup(runargs[0].c_str()));
runargs.erase(runargs.begin());
} else {
global.params.run = false;
error("Expected at least one argument to '-run'\n");