Merge pull request #151 from metadave/dip_check_args

don't call process() if args aren't specified
This commit is contained in:
Terence Parr 2013-01-29 11:18:13 -08:00
commit 59f7467d68
2 changed files with 5 additions and 1 deletions

View File

@ -52,3 +52,5 @@ YYYY/MM/DD, github id, Full name, email
2012/09/18, sharwell, Sam Harwell, sam@tunnelvisionlabs.com 2012/09/18, sharwell, Sam Harwell, sam@tunnelvisionlabs.com
2012/10/10, stephengaito, Stephen Gaito, stephen@percepitsys.co.uk 2012/10/10, stephengaito, Stephen Gaito, stephen@percepitsys.co.uk
2012/11/23, maguro, Alan Cabrera, adc@toolazydogs.com 2012/11/23, maguro, Alan Cabrera, adc@toolazydogs.com
2013/01/29, metadave, Dave Parfitt, diparfitt@gmail.com

View File

@ -139,8 +139,10 @@ public class TestRig {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
TestRig testRig = new TestRig(args); TestRig testRig = new TestRig(args);
if(args.length >= 2) {
testRig.process(); testRig.process();
} }
}
public void process() throws Exception { public void process() throws Exception {
// System.out.println("exec "+grammarName+"."+startRuleName); // System.out.println("exec "+grammarName+"."+startRuleName);