aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWil Cooley <wcooley@users.sourceforge.net>2010-03-02 21:54:15 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-03-02 21:54:15 +0100
commit9f4725e86be9700c5894e360e09496d9ee1cfb85 (patch)
treeb939206d780a8f3a3aea6e6dfa0aaff9942ab19d
parentSeveral updates to openvpn.8 (man page updates) (diff)
downloadopenvpn-9f4725e86be9700c5894e360e09496d9ee1cfb85.tar.xz
pkitool lacks expected option "--help"
The pkitool script lacks the "--help" parameter to actually display the usage statement; most people are conditioned to try that before running the command without options. This patch adds that and "--version" to display just the program name and version. sf.net tracker: <https://sourceforge.net/tracker/?func=detail&atid=454721&aid=1705407&group_id=48978> Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: Jan Just Keijser <janjust@nikhef.nl>
-rwxr-xr-xeasy-rsa/2.0/pkitool6
1 files changed, 6 insertions, 0 deletions
diff --git a/easy-rsa/2.0/pkitool b/easy-rsa/2.0/pkitool
index 1dffcdd..2a0b2f3 100755
--- a/easy-rsa/2.0/pkitool
+++ b/easy-rsa/2.0/pkitool
@@ -192,6 +192,12 @@ while [ $# -gt 0 ]; do
$PKCS11TOOL --module "$PKCS11_MODULE_PATH" --list-objects --login --slot "$PKCS11_SLOT"
exit 0;;
+ --help|--usage)
+ usage
+ exit ;;
+ --version)
+ echo "$PROGNAME $VERSION"
+ exit ;;
# errors
--* ) die "$PROGNAME: unknown option: $1" ;;
* ) break ;;