The help command now only lists the command name with no args and gives
full information when you specify the command name.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@774366 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/shell/src/main/java/org/apache/felix/shell/impl/HelpCommandImpl.java b/shell/src/main/java/org/apache/felix/shell/impl/HelpCommandImpl.java
index 1f3527b..78149ef 100644
--- a/shell/src/main/java/org/apache/felix/shell/impl/HelpCommandImpl.java
+++ b/shell/src/main/java/org/apache/felix/shell/impl/HelpCommandImpl.java
@@ -47,7 +47,7 @@
public String getShortDescription()
{
- return "display all command usage messages or descriptions.";
+ return "display available command usage and description.";
}
public void execute(String s, PrintStream out, PrintStream err)
@@ -72,8 +72,9 @@
String[] cmds = ss.getCommands();
for (int i = 0; i < cmds.length; i++)
{
- out.println(ss.getCommandUsage(cmds[i]));
+ out.println(cmds[i]);
}
+ out.println("\nUse 'help <command-name>' for more information.");
}
else
{