Print

Print


Author: [log in to unmask]
Date: Thu Nov 13 11:54:44 2014
New Revision: 1510

Log:
Minor changes to command line description.

Modified:
    java/trunk/conditions/src/main/java/org/hps/conditions/cli/PrintCommand.java

Modified: java/trunk/conditions/src/main/java/org/hps/conditions/cli/PrintCommand.java
 =============================================================================
--- java/trunk/conditions/src/main/java/org/hps/conditions/cli/PrintCommand.java	(original)
+++ java/trunk/conditions/src/main/java/org/hps/conditions/cli/PrintCommand.java	Thu Nov 13 11:54:44 2014
@@ -17,7 +17,7 @@
 
 /**
  * This sub-command of the conditions CLI prints conditions table data to
- * the console file or optionally writes it to an output file.
+ * the console or optionally writes it to an output file.
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  */
@@ -28,12 +28,13 @@
     
     PrintCommand() {
         super("print", "Print the table data for a conditions set");
-        this.options.addOption(new Option("t", true, "Set the conditions set key"));
+        this.options.addOption(new Option("t", true, "Set the conditions set name"));
         this.options.addOption(new Option("r", true, "Set the run number"));
         this.options.addOption(new Option("d", true, "Set the detector name"));
         this.options.addOption(new Option("f", true, "Write output to a file"));
     }
     
+    @SuppressWarnings("rawtypes")
     void execute(String[] arguments) {
         super.execute(arguments);
         
@@ -100,7 +101,6 @@
         
         for (ConditionsObjectCollection collection : series.getCollections()) {
             for (Object object : collection.getObjects()) {
-                //ConditionsObject conditionsObject = (ConditionsObject) object;
                 ps.print(object.toString());
                 ps.println();
             }