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

Jean-Noel Rouvignac
21.38.2015 9166c5ce64710c0eb6a4f714d5b262616e2f648d
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);
    }
    /**