]> err.no Git - yubikey-personalization.old/commitdiff
Revert "Remove redundant '-h' check."
authorFredrik Thulin <fredrik@yubico.com>
Tue, 8 Mar 2011 08:35:15 +0000 (09:35 +0100)
committerFredrik Thulin <fredrik@yubico.com>
Tue, 8 Mar 2011 08:35:15 +0000 (09:35 +0100)
This reverts commit 6a07096ae503b6f548149735c8cb0a2112dcbe53.

ykpersonalize.c

index 7dcad3991871d8f08672ce573939673ec0cabd69..bfa3170efe942e51f664e86b2df6ce976c52fe7e 100644 (file)
@@ -505,6 +505,11 @@ int main(int argc, char **argv)
                goto err;
        }
 
+       if (argc == 2 && strcmp (argv[1], "-h") == 0) {
+               fputs(usage, stderr);
+               goto err;
+       }
+
        if (!(yk = yk_open_first_key())) {
                exit_code = 1;
                goto err;