made Compiler default to --help if no arguments given
[org.ibex.tool.git] / 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) {