diff options
| author | Warner Losh <imp@FreeBSD.org> | 2021-06-21 23:51:00 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2021-06-21 23:51:00 +0000 |
| commit | 04751ecc44910c06dbd18133cf1d66b42c5ab938 (patch) | |
| tree | da0ed8fbb236b9d01a2dd401173f51e4125bcc72 /vis.c | |
| parent | 584d8a41f5ad667e789703a32c1410247d601faf (diff) | |
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: vis.c,v 1.22 2013/02/20 17:04:45 christos Exp $ */ +/* $NetBSD: vis.c,v 1.25 2015/05/24 19:42:39 christos Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: vis.c,v 1.22 2013/02/20 17:04:45 christos Exp $"); +__RCSID("$NetBSD: vis.c,v 1.25 2015/05/24 19:42:39 christos Exp $"); #endif /* not lint */ #include <stdio.h> @@ -70,7 +70,7 @@ main(int argc, char *argv[]) int ch; int rval; - while ((ch = getopt(argc, argv, "bcde:F:fhlmnostw")) != -1) + while ((ch = getopt(argc, argv, "bcde:F:fhlMmNnoSstw")) != -1) switch((char)ch) { case 'b': eflags |= VIS_NOSLASH; @@ -102,17 +102,26 @@ main(int argc, char *argv[]) case 'l': markeol++; /* mark end of line with \$ */ break; + case 'M': + eflags |= VIS_META; + break; case 'm': eflags |= VIS_MIMESTYLE; if (foldwidth == 80) foldwidth = 76; break; + case 'N': + eflags |= VIS_NOLOCALE; + break; case 'n': none++; break; case 'o': eflags |= VIS_OCTAL; break; + case 'S': + eflags |= VIS_SHELL; + break; case 's': eflags |= VIS_SAFE; break; @@ -125,7 +134,7 @@ main(int argc, char *argv[]) case '?': default: (void)fprintf(stderr, - "Usage: %s [-bcfhlmnostw] [-e extra]" + "Usage: %s [-bcfhlMmNnoSstw] [-e extra]" " [-F foldwidth] [file ...]\n", getprogname()); return 1; } |
