geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r410872 - /geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java
Date Thu, 01 Jun 2006 14:50:31 GMT
Author: jdillon
Date: Thu Jun  1 07:50:31 2006
New Revision: 410872

URL: http://svn.apache.org/viewvc?rev=410872&view=rev
Log:
Faux functionality

Modified:
    geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java?rev=410872&r1=410871&r2=410872&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/standard-commands/src/main/java/org/apache/geronimo/gshell/commands/standard/HelpCommand.java
Thu Jun  1 07:50:31 2006
@@ -81,7 +81,7 @@
             formatter.printHelp(
                 io.out,
                 80, // width (FIXME: Should pull from gshell.columns variable)
-                getName() + " [options] [topic]",
+                getName() + " [options] [topic|command]",
                 "",
                 options,
                 4, // left pad
@@ -106,7 +106,7 @@
             io.out.println("  commands");
             io.out.println();
         }
-        if (topic.equals("commands")) {
+        else if (topic.equals("commands")) {
             //
             // HACK: Need to DI this guy, but for now this will work
             //
@@ -123,8 +123,15 @@
                 io.out.print("  ");
                 io.out.println(name);
             }
-            
+
             io.out.println();
+        }
+        else {
+            //
+            // TODO: ...
+            //
+
+            io.err.println("Pending... sorry");
         }
 
         return Command.SUCCESS;



Mime
View raw message