From f13622dd449a53ed8dcfeea3a5d6ccf03d69b1cb Mon Sep 17 00:00:00 2001 From: simon75j Date: Thu, 27 Aug 2009 18:18:56 +0000 Subject: [PATCH] Make sure -h works even without yubikey. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@162 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykpersonalize.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5