From 6dc60191ddf8673db7d156e6b90fb794e4fa350a Mon Sep 17 00:00:00 2001 From: Wil Cooley Date: Tue, 2 Mar 2010 21:54:15 +0100 Subject: 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: Signed-off-by: David Sommerseth Acked-by: Jan Just Keijser --- easy-rsa/2.0/pkitool | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'easy-rsa/2.0/pkitool') diff --git a/easy-rsa/2.0/pkitool b/easy-rsa/2.0/pkitool index 7266988..49588f5 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 ;; -- cgit v1.2.3