diff options
author | mestre <mestre@cvs.openbsd.org> | 2016-03-07 12:07:58 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2016-03-07 12:07:58 +0000 |
commit | bc31d3ab9380405749109f50c712a4ff98a7b573 (patch) | |
tree | 757450abe6a8a34b28ea9250a9edb99e061a025c /games/boggle | |
parent | 6b01e9e6ca0144f4e1dca633ed40522da3b9ff79 (diff) |
- General changes:
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)
- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)
OK tb@ after his suggestions
Diffstat (limited to 'games/boggle')
-rw-r--r-- | games/boggle/boggle/bog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c index 2f6eebfce19..26b74f08f33 100644 --- a/games/boggle/boggle/bog.c +++ b/games/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bog.c,v 1.29 2016/01/10 13:18:07 mestre Exp $ */ +/* $OpenBSD: bog.c,v 1.30 2016/03/07 12:07:55 mestre Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- @@ -97,7 +97,7 @@ main(int argc, char *argv[]) minlength = -1; tlimit = 180; /* 3 minutes is standard */ - while ((ch = getopt(argc, argv, "Bbcdt:w:")) != -1) + while ((ch = getopt(argc, argv, "Bbcdht:w:")) != -1) switch(ch) { case 'B': grid = 5; @@ -119,7 +119,7 @@ main(int argc, char *argv[]) if ((minlength = atoi(optarg)) < 3) errx(1, "min word length must be > 2"); break; - case '?': + case 'h': default: usage(); } |