1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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.
This commit is contained in:
tb 2016-02-28 06:24:06 +00:00
parent 2db1096634
commit c14c4b255d

View File

@ -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();
}