Skip to content

Commit

Permalink
Change --helpDebug to --help-debug
Browse files Browse the repository at this point in the history
Changed the default identifier used to obtain debug help information
from --helpDebug to --help-debug to be more consistent with the
name of the corresponding argument in the Ping Identity Directory
Server.  Either identifier can be used to obtain the help text, but
only --help-debug will be displayed in the tool usage information.
  • Loading branch information
dirmgr committed May 22, 2024
1 parent 06d4170 commit 7f26eab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/com/unboundid/util/CommandLineTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -1297,20 +1297,20 @@ public final ArgumentParser createArgumentParser()

if (! parser.getSubCommands().isEmpty())
{
helpSubcommandsArgument = new BooleanArgument(null, "helpSubcommands", 1,
helpSubcommandsArgument = new BooleanArgument(null, "help-subcommands", 1,
INFO_CL_TOOL_DESCRIPTION_HELP_SUBCOMMANDS.get());
helpSubcommandsArgument.addLongIdentifier("helpSubcommand", true);
helpSubcommandsArgument.addLongIdentifier("help-subcommands", true);
helpSubcommandsArgument.addLongIdentifier("helpSubcommands", true);
helpSubcommandsArgument.addLongIdentifier("help-subcommand", true);
helpSubcommandsArgument.addLongIdentifier("helpSubcommand", true);
helpSubcommandsArgument.setUsageArgument(true);
parser.addArgument(helpSubcommandsArgument);
}

if (supportsDebugLogging())
{
helpDebugArgument = new BooleanArgument(null, "helpDebug", 1,
helpDebugArgument = new BooleanArgument(null, "help-debug", 1,
INFO_CL_TOOL_DESCRIPTION_HELP_DEBUG.get());
helpDebugArgument.addLongIdentifier("help-debug", true);
helpDebugArgument.addLongIdentifier("helpDebug", true);
helpDebugArgument.setUsageArgument(true);
parser.addArgument(helpDebugArgument);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ public void testInteractiveMode()
final File outputFile = createTempFile();
final InputStream in = getInputStream(
"1", // Choose the decode subcommand
"8", // Choose to edit the data to decode,
"9", // Choose to edit the data to decode,
Base64.encode("interactive"), // The data to decode
"10", // Choose the output file to create
"11", // Choose the output file to create
outputFile.getAbsolutePath(), // The path to the output file
"d", // Display the arguments
"", // Done displaying the arguments
Expand Down

0 comments on commit 7f26eab

Please sign in to comment.