mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
05.02.2007 8d1ccf1c65b3892a5c67e77df38786f5ee329773
opendj-sdk/opends/src/server/org/opends/server/util/args/SubCommandArgumentParser.java
@@ -1327,7 +1327,7 @@
    buffer.append(" ");
    buffer.append(subCommand.getName());
    buffer.append(" {options}");
    buffer.append(" ").append(INFO_SUBCMDPARSER_OPTIONS.get());
    if (subCommand.allowsTrailingArguments()) {
      buffer.append(' ');
      buffer.append(subCommand.getTrailingArgumentsDisplayName());
@@ -1686,6 +1686,7 @@
        }
      }
      indentNb++;
      boolean isFirst = true;
      for (SubCommand sc : c) {
        if (sc.isHidden()) {
          continue;
@@ -1694,8 +1695,13 @@
        for (int i = 0; i < indentNb - sc.getName().length(); i++) {
          buffer.append(" ");
        }
        if (!isFirst)
        {
          buffer.append(EOL);
        }
        buffer.append(sc.getDescription());
        buffer.append(EOL);
        isFirst = false;
      }
    }