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

Jean-Noel Rouvignac
21.38.2015 145ab517b749e464dd80ac6726d49a044cc054b0
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java
@@ -244,15 +244,19 @@
        addGlobalArgument(argument, null);
    }
    /** {@inheritDoc} */
    /**
     * Adds the provided argument to the set of arguments handled by this parser and puts the argument in the LDAP
     * connection group.
     *
     * @param argument
     *            The argument to add to this sub command.
     * @throws ArgumentException
     *             If the provided argument conflicts with another global or subcommand argument that has already been
     *             defined.
     */
    @Override
    public void addArgument(Argument argument) throws ArgumentException {
        final ArgumentGroup group = getStandardGroup(argument);
        if (group == ldapArgGroup) {
            addGlobalArgument(argument);
        } else {
            super.addArgument(argument);
        }
    public void addLdapConnectionArgument(final Argument argument) throws ArgumentException {
        addGlobalArgument(argument, null);
    }
    /**