From: Simon Josefsson Date: Thu, 27 Aug 2009 18:18:56 +0000 (+0000) Subject: Make sure -h works even without yubikey. X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~84 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e9b023222491098cbfa00209a81d0b58a0668b;p=yubikey-personalization Make sure -h works even without yubikey. --- diff --git a/ykpersonalize.c b/ykpersonalize.c index e3ea06f..3716d50 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -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;