From 7500817057f828ad193c5d0ddacdd7bc38e172e0 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 20 Jul 2007 08:06:46 +0000
Subject: [PATCH] When command grouping is used (in dscondig for instance) the top level help displays:

---
 opends/src/server/org/opends/server/messages/UtilityMessages.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/UtilityMessages.java b/opends/src/server/org/opends/server/messages/UtilityMessages.java
index 81c0768..600445e 100644
--- a/opends/src/server/org/opends/server/messages/UtilityMessages.java
+++ b/opends/src/server/org/opends/server/messages/UtilityMessages.java
@@ -1744,6 +1744,12 @@
        CATEGORY_MASK_UTIL | SEVERITY_MASK_MILD_ERROR | 165;
 
 
+  /**
+   * The message ID for the message that will be used as the heading
+   * for the table of sub-commands. This does not take any arguments.
+   */
+  public static final int MSGID_SUBCMDPARSER_SUBCMD_HELP_HEADING =
+    CATEGORY_MASK_UTIL | SEVERITY_MASK_INFORMATIONAL | 166;
 
 
   /**
@@ -2298,6 +2304,8 @@
                     "Usage:");
     registerMessage(MSGID_SUBCMDPARSER_SUBCMD_HEADING,
                     "Available subcommands:");
+    registerMessage(MSGID_SUBCMDPARSER_SUBCMD_HELP_HEADING,
+                    "To get the list of subcommands use:");
     registerMessage(MSGID_SUBCMDPARSER_SUBCMD_REFERENCE,
                     "See \"%s --help-{category}\"");
     registerMessage(MSGID_SUBCMDPARSER_GLOBAL_HEADING,

--
Gitblit v1.10.0