| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util.args; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | /** |
| | | * Adds the provided argument to the set of arguments handled by this parser |
| | | * and puts the arguement in the general group. |
| | | * and puts the argument in the general group. |
| | | * |
| | | * @param argument The argument to be added. |
| | | * |
| | |
| | | throw new ArgumentException(message); |
| | | } |
| | | |
| | | if (versionArgument != null) |
| | | if ((versionArgument != null) && (shortID != null)) |
| | | { |
| | | if (shortID == versionArgument.getShortIdentifier()) |
| | | if (shortID.equals(versionArgument.getShortIdentifier())) |
| | | { |
| | | // Update the version argument to not display its short identifier. |
| | | try { |
| | |
| | | { |
| | | if (trailingArgsDisplayName == null) |
| | | { |
| | | buffer.append(" "+INFO_ARGPARSER_USAGE_TRAILINGARGS.get()); |
| | | buffer.append(" "); |
| | | buffer.append(INFO_ARGPARSER_USAGE_TRAILINGARGS.get()); |
| | | } |
| | | else |
| | | { |