| | |
| | | import java.util.SortedMap; |
| | | import java.util.TreeMap; |
| | | |
| | | import com.forgerock.opendj.util.OperatingSystem; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | |
| | | import com.forgerock.opendj.util.OperatingSystem; |
| | | |
| | | /** |
| | | * This class defines a variant of the argument parser that can be used with applications that use subcommands to |
| | | * customize their behavior and that have a different set of options per subcommand (e.g, "cvs checkout" takes different |
| | |
| | | /** The set of subcommands defined for this parser, referenced by subcommand name. */ |
| | | private final SortedMap<String, SubCommand> subCommands = new TreeMap<>(); |
| | | |
| | | /**The subcommand requested by the user as part of the command-line arguments. */ |
| | | /** The subcommand requested by the user as part of the command-line arguments. */ |
| | | private SubCommand subCommand; |
| | | private SubCommandUsageHandler subCommandUsageHandler; |
| | | |
| | |
| | | toRefEntry(builder, subCommands); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | String getSynopsisArgs() { |
| | | if (subCommands.isEmpty()) { |