forked from lix-project/lix
* Make --parse-only work when *not* reading from stdin.
This commit is contained in:
parent
f848a45739
commit
9e51abc7dc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue