You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2011/05/05 21:42:28 UTC

svn commit: r1099939 - /mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java

Author: gsingers
Date: Thu May  5 19:42:27 2011
New Revision: 1099939

URL: http://svn.apache.org/viewvc?rev=1099939&view=rev
Log:
print out the usage along with the error, instead of just the info on the option that failed that way people can plan ahead and know all the options

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java?rev=1099939&r1=1099938&r2=1099939&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/common/CommandLineUtil.java Thu May  5 19:42:27 2011
@@ -73,7 +73,7 @@ public final class CommandLineUtil {
     formatter.setGroup(group);
     formatter.setPrintWriter(pw);
     formatter.setException(oe);
-    formatter.printHelp();
+    formatter.print();
     pw.flush();
   }