From 7ef912e6dced0f2752dd6f0925396fa076848d35 Mon Sep 17 00:00:00 2001 From: Valery Kharseko Date: Tue, 24 Sep 2024 10:16:01 +0300 Subject: [PATCH] [#394] FIX dsconfig --help- (#406) --- .../com/forgerock/opendj/cli/SubCommandArgumentParser.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java index 9142339bed..3dd33d29e4 100644 --- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java +++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/SubCommandArgumentParser.java @@ -13,6 +13,7 @@ * * Copyright 2006-2010 Sun Microsystems, Inc. * Portions Copyright 2011-2016 ForgeRock AS. + * Portions Copyright 2018-2024 3A Systems, LLC. */ package com.forgerock.opendj.cli; @@ -412,7 +413,11 @@ public void parseArguments(String[] rawArguments, Properties argumentProperties) // If this is a usage argument, then immediately stop and print // usage information. if (usageGroupArguments.containsKey(a)) { - writeToUsageOutputStream(getUsage());//getUsage(a); + if ((System.getProperty("org.forgerock.opendj.gendoc") != null)) { + writeToUsageOutputStream(getUsage()); + }else { + getUsage(a); + } return; }