From: Fredrik Thulin Date: Tue, 8 Mar 2011 08:35:15 +0000 (+0100) Subject: Revert "Remove redundant '-h' check." X-Git-Tag: v1.5.0~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8412932c530b4e407b810c64e68e95fbe1cfeefd;p=yubikey-personalization.old Revert "Remove redundant '-h' check." This reverts commit 6a07096ae503b6f548149735c8cb0a2112dcbe53. --- diff --git a/ykpersonalize.c b/ykpersonalize.c index 7dcad39..bfa3170 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -505,6 +505,11 @@ int main(int argc, char **argv) goto err; } + if (argc == 2 && strcmp (argv[1], "-h") == 0) { + fputs(usage, stderr); + goto err; + } + if (!(yk = yk_open_first_key())) { exit_code = 1; goto err;