* Make --parse-only work when *not* reading from stdin.
This commit is contained in:
parent
f848a45739
commit
9e51abc7dc
1 changed files with 4 additions and 2 deletions
|
@ -100,8 +100,10 @@ void run(Strings args)
|
||||||
for (Strings::iterator i = files.begin();
|
for (Strings::iterator i = files.begin();
|
||||||
i != files.end(); i++)
|
i != files.end(); i++)
|
||||||
{
|
{
|
||||||
Expr e = evalFile(state, absPath(*i));
|
Path path = absPath(*i);
|
||||||
/* !!! parseOnly ignored */
|
Expr e = parseOnly
|
||||||
|
? parseExprFromFile(state, path)
|
||||||
|
: evalFile(state, path);
|
||||||
printResult(state, e, evalOnly);
|
printResult(state, e, evalOnly);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue