]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
pkitool lacks expected option "--help"
authorWil Cooley <wcooley@users.sourceforge.net>
Tue, 2 Mar 2010 20:54:15 +0000 (21:54 +0100)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Tue, 2 Mar 2010 20:54:15 +0000 (21:54 +0100)
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>
easy-rsa/2.0/pkitool

index 1dffcdd4a37311f33d45032da78ce4f683048ce5..2a0b2f3825f2dbff95447cf1019dd5ad909f0924 100755 (executable)
@@ -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 ;;