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

lutoff
04.46.2007 0c41649927fe66913e2e3168f69e671bf7199987
opends/src/server/org/opends/server/util/args/ArgumentParser.java
@@ -1020,6 +1020,7 @@
      // Write a line with the short and/or long identifiers that may be used
      // for the argument.
      Character shortID = a.getShortIdentifier();
      String longID = a.getLongIdentifier();
      if (shortID != null)
      {
        int currentLength = buffer.length();
@@ -1027,17 +1028,16 @@
        buffer.append("-");
        buffer.append(shortID.charValue());
        if (a.needsValue())
        if (a.needsValue() && longID == null)
        {
          buffer.append(" ");
          buffer.append(a.getValuePlaceholder());
        }
        String longID = a.getLongIdentifier();
        if (longID != null)
        {
          StringBuilder newBuffer = new StringBuilder();
          newBuffer.append("or   --");
          newBuffer.append(", --");
          newBuffer.append(longID);
          if (a.needsValue())
@@ -1046,7 +1046,7 @@
            newBuffer.append(a.getValuePlaceholder());
          }
          int lineLength = (buffer.length() - currentLength) + 2 +
          int lineLength = (buffer.length() - currentLength) +
                           newBuffer.length();
          if (lineLength > 80)
          {
@@ -1055,7 +1055,6 @@
          }
          else
          {
            buffer.append("  ");
            buffer.append(newBuffer.toString());
          }
        }
@@ -1064,7 +1063,6 @@
      }
      else
      {
        String longID = a.getLongIdentifier();
        if (longID != null)
        {
          buffer.append("--");