]> err.no Git - yubikey-personalization/commitdiff
Make sure -h works even without yubikey.
authorsimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 27 Aug 2009 18:18:56 +0000 (18:18 +0000)
committersimon75j <simon75j@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 27 Aug 2009 18:18:56 +0000 (18:18 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@162 b62f149e-849f-11dd-9899-c7ba65f7c4c7

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;