made Compiler default to --help if no arguments given
authoradam <adam@megacz.com>
Mon, 27 Dec 2004 02:59:03 +0000 (02:59 +0000)
committeradam <adam@megacz.com>
Mon, 27 Dec 2004 02:59:03 +0000 (02:59 +0000)
darcs-hash:20041227025903-5007d-f363128744f60e46a26f281f7c812f498e731821.gz

src/org/ibex/tool/Compiler.java

index 4ce113c..532fb84 100644 (file)
@@ -27,6 +27,7 @@ public class Compiler {
         List srcdir = new ArrayList();
         String source = null, target = null, blddir = null;
 
+       if (args.length == 0) args = new String[] { "--help" };
         for (int i=0; i < args.length; i++) {
             if (args[i].charAt(0) == '-') {
                 if (args[i].length() == 1) {