[Swift-commit] r4683 - usertools/plotter/src/plotter

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Thu Jun 23 19:16:01 CDT 2011


Author: jonmon
Date: 2011-06-23 19:16:01 -0500 (Thu, 23 Jun 2011)
New Revision: 4683

Modified:
   usertools/plotter/src/plotter/Dual.java
   usertools/plotter/src/plotter/Lines.java
Log:
o removed argument count error checking as that is done in the Plotter class
o gave the instances of GetOpt an actual name instead of just testprog



Modified: usertools/plotter/src/plotter/Dual.java
===================================================================
--- usertools/plotter/src/plotter/Dual.java	2011-06-23 23:14:21 UTC (rev 4682)
+++ usertools/plotter/src/plotter/Dual.java	2011-06-24 00:16:01 UTC (rev 4683)
@@ -54,7 +54,7 @@
         // Settings:
         boolean verbose = false;
 
-        Getopt g = new Getopt("testprog", args, "v");
+        Getopt g = new Getopt("Dual", args, "v");
         int c = -1;
         while ((c = g.getopt()) != -1)
         {
@@ -65,13 +65,6 @@
             }
         }
 
-        if (args.length < 3)
-        {
-            System.err.println
-                ("usage: [<options>] <properties> <output> <data>*");
-            System.exit(2);
-        }
-
         Bits.init();
         Util.verbose(verbose);
 

Modified: usertools/plotter/src/plotter/Lines.java
===================================================================
--- usertools/plotter/src/plotter/Lines.java	2011-06-23 23:14:21 UTC (rev 4682)
+++ usertools/plotter/src/plotter/Lines.java	2011-06-24 00:16:01 UTC (rev 4683)
@@ -54,7 +54,7 @@
         // Settings:
         boolean verbose = false;
 
-        Getopt g = new Getopt("testprog", args, "v");
+        Getopt g = new Getopt("Lines", args, "v");
         int c = -1;
         while ((c = g.getopt()) != -1)
         {
@@ -65,13 +65,6 @@
             }
         }
 
-        if (args.length < 3)
-        {
-            System.err.println
-                ("usage: [<options>] <properties> <output> <data>*");
-            System.exit(2);
-        }
-
         Bits.init();
         Util.verbose(verbose);
 




More information about the Swift-commit mailing list