| | |
| | | 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); |
| | | } |
| | | |
| | | /** |