* Make --parse-only work when *not* reading from stdin.

This commit is contained in:
Eelco Dolstra 2006-02-10 15:28:47 +00:00
parent f848a45739
commit 9e51abc7dc

View file

@ -100,8 +100,10 @@ void run(Strings args)
for (Strings::iterator i = files.begin();
i != files.end(); i++)
{
Expr e = evalFile(state, absPath(*i));
/* !!! parseOnly ignored */
Path path = absPath(*i);
Expr e = parseOnly
? parseExprFromFile(state, path)
: evalFile(state, path);
printResult(state, e, evalOnly);
}