summaryrefslogtreecommitdiff
path: root/usr.bin/vis/vis.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2004-04-22 06:35:02 +0000
committerlukem <lukem@NetBSD.org>2004-04-22 06:35:02 +0000
commita5bde8e7c557697dcbc1495bf8dc99f122fc0e3b (patch)
treee44910653eda76dd3c58ed8d9ebcc6d966344e6a /usr.bin/vis/vis.c
parent0041584094e3bf3ff699a8b40741914e1ab9a71d (diff)
Add -h to enable VIS_HTTPSTYLE.
Reorder getopt & usage strings to be alphabetical to match man page.
Diffstat (limited to 'usr.bin/vis/vis.c')
-rw-r--r--usr.bin/vis/vis.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c
index 21547b7bce0..c7bba917ebb 100644
--- a/usr.bin/vis/vis.c
+++ b/usr.bin/vis/vis.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.9 2004/01/05 23:23:37 jmmv Exp $ */
+/* $NetBSD: vis.c,v 1.10 2004/04/22 06:35:02 lukem Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: vis.c,v 1.9 2004/01/05 23:23:37 jmmv Exp $");
+__RCSID("$NetBSD: vis.c,v 1.10 2004/04/22 06:35:02 lukem Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -65,7 +65,7 @@ main(argc, argv)
int ch;
int rval;
- while ((ch = getopt(argc, argv, "nwctsobe:fF:ld")) != -1)
+ while ((ch = getopt(argc, argv, "bcfhlnostwe:F:d")) != -1)
switch((char)ch) {
case 'n':
none++;
@@ -85,6 +85,9 @@ main(argc, argv)
case 'o':
eflags |= VIS_OCTAL;
break;
+ case 'h':
+ eflags |= VIS_HTTPSTYLE;
+ break;
case 'b':
eflags |= VIS_NOSLASH;
break;
@@ -111,7 +114,7 @@ main(argc, argv)
case '?':
default:
fprintf(stderr,
- "usage: vis [-nwctsobf] [-e extra] [-F foldwidth]\n");
+ "usage: vis [-bcfhlnostw] [-e extra] [-F foldwidth]\n");
exit(1);
}
argc -= optind;