summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-02-28 06:24:06 +0000
committertb <tb@openbsd.org>2016-02-28 06:24:06 +0000
commitc14c4b255dcdaaad9d4c9c6cf694703e29f9e120 (patch)
tree5aeed3ccf671fe5d8945ff9ed297beeba58674c5
parentIn emit_insxl() force the first operand of the insbl or inswl pattern (diff)
downloadwireguard-openbsd-c14c4b255dcdaaad9d4c9c6cf694703e29f9e120.tar.xz
wireguard-openbsd-c14c4b255dcdaaad9d4c9c6cf694703e29f9e120.zip
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.c5
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();
}