]> err.no Git - yubikey-personalization/commitdiff
Make sure -h works even without yubikey.
authorSimon Josefsson <simon@josefsson.org>
Thu, 27 Aug 2009 18:18:56 +0000 (18:18 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 27 Aug 2009 18:18:56 +0000 (18:18 +0000)
ykpersonalize.c

index e3ea06fd1cbe7385c6c4b2b52cce468bc1a9f904..3716d50d1262cd1fa4d31ce6c9717585e4b9d249 100644 (file)
@@ -173,6 +173,11 @@ main(int argc, char **argv)
        ykp_errno = 0;
        yk_errno = 0;
 
+       if (argc == 2 && strcmp (argv[1], "-h") == 0) {
+               fprintf(stderr, usage);
+               goto err;
+       }
+
        /* Assume the worst */
        error = true;