diff options
author | tb <tb@cvs.openbsd.org> | 2016-02-28 06:24:07 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2016-02-28 06:24:07 +0000 |
commit | a426712df1bfb1195839357ca7cc88c88568c397 (patch) | |
tree | 32b10bcfb78c87057f26d26a64789d3b0cc04f2d | |
parent | c6f718c1eb983225056f8a2c025c437d9c706e43 (diff) |
Add back undocumented -h switch defaulting to usage().
pjanzen@ correctly pointed out that a majority of games do
this, so no need to deviate here.
-rw-r--r-- | games/hangman/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/hangman/main.c b/games/hangman/main.c index eb7c7055b73..5f6ed15aa8e 100644 --- a/games/hangman/main.c +++ b/games/hangman/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.18 2016/02/26 21:27:07 mestre Exp $ */ +/* $OpenBSD: main.c,v 1.19 2016/02/28 06:24:06 tb Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/23 08:32:50 cgd Exp $ */ /* @@ -52,7 +52,7 @@ main(int argc, char *argv[]) if (pledge("stdio rpath tty", NULL) == -1) err(1, "pledge"); - while ((ch = getopt(argc, argv, "d:k")) != -1) { + while ((ch = getopt(argc, argv, "d:hk")) != -1) { switch (ch) { case 'd': if (syms) @@ -64,6 +64,7 @@ main(int argc, char *argv[]) syms = 1; Dict_name = _PATH_KSYMS; break; + case 'h': default: usage(); } |