diff options
author | 2007-02-20 04:39:45 +0000 | |
---|---|---|
committer | 2007-02-20 04:39:45 +0000 | |
commit | d6f2a01a7baad5460292748659966b923f128c20 (patch) | |
tree | 1ca293449e17b18d7274761ba3a9af62e4c6919a | |
parent | Back out -h doc after discussion with theo (diff) | |
download | wireguard-openbsd-d6f2a01a7baad5460292748659966b923f128c20.tar.xz wireguard-openbsd-d6f2a01a7baad5460292748659966b923f128c20.zip |
Remove useless -h option (if you don't know the synopsis, how do you know
-h?). OK deraadt
-rw-r--r-- | usr.bin/mg/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c index 538ae32a942..30fcb7202c5 100644 --- a/usr.bin/mg/main.c +++ b/usr.bin/mg/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.55 2006/11/19 16:51:19 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.56 2007/02/20 04:39:45 cloder Exp $ */ /* This file is in the public domain. */ @@ -34,7 +34,7 @@ extern char *__progname; static __dead void usage() { - fprintf(stderr, "usage: %s [+line] [-hn] [-f mode] [file ...]\n", + fprintf(stderr, "usage: %s [+line] [-n] [-f mode] [file ...]\n", __progname); exit(1); } @@ -47,7 +47,7 @@ main(int argc, char **argv) int o, i, nfiles; int nobackups = 0; - while ((o = getopt(argc, argv, "hnf:")) != -1) + while ((o = getopt(argc, argv, "nf:")) != -1) switch (o) { case 'n': nobackups = 1; @@ -58,8 +58,6 @@ main(int argc, char **argv) "initial function"); init_fcn_name = optarg; break; - case 'h': - /* FALLTHRU */ default: usage(); } |