geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r695354 - /geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Date Mon, 15 Sep 2008 06:34:56 GMT
Author: jdillon
Date: Sun Sep 14 23:34:54 2008
New Revision: 695354

URL: http://svn.apache.org/viewvc?rev=695354&view=rev
Log:
Use printer to handle syntax output

Modified:
    geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java

Modified: geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java?rev=695354&r1=695353&r2=695354&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
(original)
+++ geronimo/gshell/trunk/gshell-cli/src/main/java/org/apache/geronimo/gshell/cli/Main.java
Sun Sep 14 23:34:54 2008
@@ -54,7 +54,7 @@
 
     private final IO io = new IO();
 
-    private final MessageSource messages = new ResourceBundleMessageSource(this.getClass());
+    private final MessageSource messages = new ResourceBundleMessageSource(getClass());
     
     //
     // TODO: Add flag to capture output to log file
@@ -215,12 +215,9 @@
             
             if (help|version) {
                 if (help) {
-                    io.out.println(applicationModel.getBranding().getProgramName() + " [options]
<command> [arguments]");
-                    io.out.println();
-
                     Printer printer = new Printer(clp);
                     printer.setMessageSource(messages);
-                    printer.printUsage(io.out);
+                    printer.printUsage(io.out, applicationModel.getBranding().getProgramName());
                 }
                 else if (version) {
                     io.out.println(applicationModel.getVersion());



Mime
View raw message