summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2007-02-20 04:39:46 +0000
committerChad Loder <cloder@cvs.openbsd.org>2007-02-20 04:39:46 +0000
commit7b4eacf85a6839e1d436bf225146daaaa24c914b (patch)
tree2d382a88994198a330c46cfa490249772d26c092 /usr.bin/mg
parentc3d0adc1f90da4d9e1b666dbd751f21298d8f299 (diff)
Remove useless -h option (if you don't know the synopsis, how do you know
-h?). OK deraadt
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/main.c8
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();
}