Skip to content

Commit

Permalink
Update importldiff --offline and --clearBacked flags descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
maximthomas committed Oct 17, 2024
1 parent 1989879 commit b34545e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ else if (! templateFile.isPresent())
return process(argParser, initializeServer, out, err);
}

@Override
protected LocalizableMessage getOfflineDescriptionMessage() {
return INFO_LDIFIMPORT_DESCRIPTION_RUN_OFFLINE.get();
}

private void createArguments(LDAPConnectionArgumentParser argParser) throws ArgumentException
{
configFile =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,20 @@ protected LDAPConnectionArgumentParser createArgParser(String className,
}

runOfflineArg = BooleanArgument.builder("offline")
.description(INFO_DESCRIPTION_RUN_OFFLINE.get())
.buildAndAddToParser(argParser);
.description(getOfflineDescriptionMessage())
.buildAndAddToParser(argParser);

} catch (ArgumentException e) {
// should never happen
}

return argParser;
}

protected LocalizableMessage getOfflineDescriptionMessage() {
return INFO_DESCRIPTION_RUN_OFFLINE.get();
}

/**
* Validates arguments related to task scheduling. This should be
* called after the <code>ArgumentParser.parseArguments</code> has
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,8 @@ INFO_DESCRIPTION_PWPSTATE_CLEAR_PASSWORD_HISTORY_1203=Clear password history \
ERR_CONFIGDS_PORT_ALREADY_SPECIFIED_1211=ERROR: You have specified \
the value %s for different ports
INFO_LDIFIMPORT_DESCRIPTION_CLEAR_BACKEND_1251=Remove all entries for all \
base DNs in the backend before importing
base DNs in the backend before importing. Set to `true` when running in the offline mode \
(i.e. the `--offline` flag is set)
ERR_LDIFIMPORT_MISSING_BACKEND_ARGUMENT_1252=Neither the %s or the %s \
argument was provided. One of these arguments must be given to specify the \
backend for the LDIF data to be imported to
Expand Down Expand Up @@ -1984,6 +1985,8 @@ INFO_JAVAPROPERTIES_SUCCESSFUL_1495=The operation was successful. The server \
commands will use the java arguments and java home specified in the \
properties file located in %s
INFO_DESCRIPTION_RUN_OFFLINE_1496=Indicates that the command must be run in offline mode
INFO_LDIFIMPORT_DESCRIPTION_RUN_OFFLINE_14960=Indicates that the command must be run in offline mode. \
Forces old data replacement with imported data.
ERR_BACKUPDB_REPEATED_BACKEND_ID_1497=The backend ID '%s' has been \
specified several times
ERR_INSTALLDS_EMPTY_DN_RESPONSE_1498=ERROR: The empty LDAP DN is not \
Expand Down

0 comments on commit b34545e

Please sign in to comment.