forked from jasder/antlr
-ps arg wrong
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9745]
This commit is contained in:
parent
adb91a9bde
commit
c6bde7e1e8
|
@ -68,12 +68,12 @@ public class TestRig {
|
||||||
printTree = true;
|
printTree = true;
|
||||||
}
|
}
|
||||||
else if ( arg.equals("-ps") ) {
|
else if ( arg.equals("-ps") ) {
|
||||||
if ( (i+1)>=args.length ) {
|
if ( i>=args.length ) {
|
||||||
System.err.println("missing filename on -ps");
|
System.err.println("missing filename on -ps");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
psFile = args[i];
|
psFile = args[i];
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exec(grammarName, startRuleName, inputFile, printTree, psFile);
|
exec(grammarName, startRuleName, inputFile, printTree, psFile);
|
||||||
|
|
Loading…
Reference in New Issue