From: simon75j Date: Thu, 27 Aug 2009 18:18:56 +0000 (+0000) Subject: Make sure -h works even without yubikey. X-Git-Tag: yubikey-personalisation_0.97-1~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13622dd449a53ed8dcfeea3a5d6ccf03d69b1cb;p=yubikey-personalization.old Make sure -h works even without yubikey. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@162 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- 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;