-ps arg wrong

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9745]
This commit is contained in:
parrt 2011-12-26 11:13:46 -08:00
parent adb91a9bde
commit c6bde7e1e8
1 changed files with 2 additions and 2 deletions

View File

@ -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);