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

Jean-Noël Rouvignac
15.28.2015 3ea043ecdcf10a6c808bc01de235b9c27a1fb160
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java
@@ -47,10 +47,11 @@
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
@@ -78,7 +79,7 @@
    /** 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;
@@ -1095,7 +1096,6 @@
        toRefEntry(builder, subCommands);
    }
    /** {@inheritDoc} */
    @Override
    String getSynopsisArgs() {
        if (subCommands.isEmpty()) {