[Swift-commit] r3812 - trunk/src/org/griphyn/vdl/karajan

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sun Dec 19 06:11:42 CST 2010


Author: skenny
Date: 2010-12-19 06:11:38 -0600 (Sun, 19 Dec 2010)
New Revision: 3812

Modified:
   trunk/src/org/griphyn/vdl/karajan/Loader.java
Log:
print swift version to commandline

Modified: trunk/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Loader.java	2010-12-17 00:23:05 UTC (rev 3811)
+++ trunk/src/org/griphyn/vdl/karajan/Loader.java	2010-12-19 12:11:38 UTC (rev 3812)
@@ -56,6 +56,7 @@
     private static final Logger logger = Logger.getLogger(Loader.class);
 
     public static final String ARG_HELP = "help";
+    public static final String ARG_VERSION = "version";
     public static final String ARG_MONITOR = "monitor";
     public static final String ARG_RESUME = "resume";
     public static final String ARG_INSTANCE_CONFIG = "config";
@@ -89,6 +90,10 @@
                 ap.usage();
                 System.exit(0);
             }
+	    if (ap.isPresent(ARG_VERSION)){
+		ap.version();
+		System.exit(0);
+	    }
             if (ap.isPresent(ARG_MONITOR)) {
                 new Monitor().start();
             }
@@ -371,6 +376,7 @@
                 ArgumentParser.OPTIONAL);
 
         ap.addFlag(ARG_HELP, "Display usage information");
+	ap.addFlag(ARG_VERSION, "Version:");
         ap.addAlias(ARG_HELP, "h");
 
         ap.addFlag(ARG_RECOMPILE, 




More information about the Swift-commit mailing list