From 4915128605a07d7c82fda681596d4da9746e3f97 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 09 Mar 2007 19:06:23 +0000
Subject: [PATCH] Update the argument parser so that it will always treat "-?" as as request to see the usage information. Also, allow short identifiers to be requested using a forward slash in addition to a single dash (e.g., "/?" will be treated the same as "-?").
---
opends/src/server/org/opends/server/tools/EncodePassword.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/EncodePassword.java b/opends/src/server/org/opends/server/tools/EncodePassword.java
index c5f9635..d21d452 100644
--- a/opends/src/server/org/opends/server/tools/EncodePassword.java
+++ b/opends/src/server/org/opends/server/tools/EncodePassword.java
@@ -266,7 +266,7 @@
// If we should just display usage information, then we've already done it
// so just return without doing anything else.
- if (showUsage.isPresent())
+ if (argParser.usageDisplayed())
{
return 0;
}
--
Gitblit v1.10.0