summaryrefslogtreecommitdiffstats
path: root/easy-rsa/2.0
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-10-21 21:11:46 +0200
commit6dc60191ddf8673db7d156e6b90fb794e4fa350a (patch)
tree9a3cae460a9528f40caeb539004f314856bb0598 /easy-rsa/2.0
parentd04b8582a8d9cda4e886019c81f24712663e97b4 (diff)
downloadopenvpn-6dc60191ddf8673db7d156e6b90fb794e4fa350a.tar.gz
openvpn-6dc60191ddf8673db7d156e6b90fb794e4fa350a.tar.xz
openvpn-6dc60191ddf8673db7d156e6b90fb794e4fa350a.zip
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>
Diffstat (limited to 'easy-rsa/2.0')
-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 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 ;;