| | |
| | | |
| | | /**The subcommand requested by the user as part of the command-line arguments. */ |
| | | private SubCommand subCommand; |
| | | private SubCommandUsageHandler subCommandUsageHandler; |
| | | |
| | | /** |
| | | * Creates a new instance of this subcommand argument parser with no arguments. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets the sub-command usage handler which will be used to display the usage information. |
| | | * |
| | | * @param subCommandUsageHandler the sub-command usage handler |
| | | */ |
| | | public void setUsageHandler(SubCommandUsageHandler subCommandUsageHandler) { |
| | | this.subCommandUsageHandler = subCommandUsageHandler; |
| | | } |
| | | |
| | | /** |
| | | * Parses the provided set of arguments and updates the information associated with this parser accordingly. Default |
| | | * values for unspecified arguments may be read from the specified properties if any are provided. |
| | | * |
| | |
| | | } |
| | | sb.append("</option></term>").append(EOL); |
| | | sb.append(" <listitem>").append(EOL); |
| | | sb.append(" <para>"); |
| | | sb.append(a.getDescription()); |
| | | sb.append("</para>").append(EOL); |
| | | sb.append(" <para>").append(a.getDescription()).append("</para>").append(EOL); |
| | | if (subCommandUsageHandler != null) { |
| | | subCommandUsageHandler.appendUsage(sb, sc, longID); |
| | | } |
| | | sb.append(" </listitem>").append(EOL); |
| | | sb.append(" </varlistentry>").append(EOL); |
| | | } |