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

Gaetan Boismal
17.33.2015 be7099f9c0ad27631508853d5af16609152c4f9b
OPENDJ-2555 Fix setup man page

Generated setup man page should not print a backend type as default
value because this information vary whether the server distribution is
OEM or not.
Fix just catch the argument and prints a generic message instead.
1 files modified
5 ■■■■■ changed files
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ArgumentParser.java 5 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ArgumentParser.java
@@ -803,6 +803,11 @@
                    a.setDefaultValue("localhost.localdomain");
                }
                // Return a generic message as default backend type depends on the server distribution.
                if (a.getName().equalsIgnoreCase(OPTION_LONG_BACKEND_TYPE)) {
                    a.setDefaultValue("Depends on the distribution");
                }
                // The help argument should be added at the end.
                if (isUsageArgument(a)) {
                    helpArgument = a;