summaryrefslogtreecommitdiff
path: root/usr.bin/vis
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-04-10 13:53:40 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-04-10 13:53:40 +0000
commit0fee9bf842d7f90ff024228ddcfc7ca3c99eeace (patch)
treea9d1a479662fc0c9fc5f42015d97b7d0fb5c3897 /usr.bin/vis
parent92bc8fe79c47764c2bfa01861ae127858f564d1c (diff)
the arg to -F is not optional;
tweak -f description accordingly; found by wilfried@
Diffstat (limited to 'usr.bin/vis')
-rw-r--r--usr.bin/vis/vis.113
-rw-r--r--usr.bin/vis/vis.c6
2 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/vis/vis.1 b/usr.bin/vis/vis.1
index 2632d352d7e..4558b6cc734 100644
--- a/usr.bin/vis/vis.1
+++ b/usr.bin/vis/vis.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vis.1,v 1.9 2003/09/03 21:14:57 avsm Exp $
+.\" $OpenBSD: vis.1,v 1.10 2005/04/10 13:53:39 jmc Exp $
.\" $NetBSD: vis.1,v 1.5 1994/11/17 07:56:00 jtc Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993, 1994
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.Nm vis
.Op Fl cbflnostw
-.Op Fl F Op Ar foldwidth
+.Op Fl F Ar foldwidth
.Op Ar file ...
.Sh DESCRIPTION
.Nm
@@ -69,12 +69,12 @@ It is similar to
.It Fl c
Request a format which displays a small subset of the
non-printable characters using C-style backslash sequences.
-.It Fl F
+.It Fl F Ar foldwidth
Causes
.Nm
to fold output lines to
.Ar foldwidth
-columns (default 80), like
+columns, like
.Xr fold 1 ,
except
that a hidden newline sequence is used, (which is removed
@@ -86,8 +86,9 @@ This makes
the output usable with various editors and other utilities which
typically don't work with partial lines.
.It Fl f
-Same as
-.Fl F .
+Like
+.Fl F ,
+except output is always folded to 80 columns.
.It Fl l
Mark newlines with the visible sequence
.Ql \e$ ,
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c
index 6f5a8939390..ca78d2886b8 100644
--- a/usr.bin/vis/vis.c
+++ b/usr.bin/vis/vis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.c,v 1.9 2004/09/14 23:01:06 deraadt Exp $ */
+/* $OpenBSD: vis.c,v 1.10 2005/04/10 13:53:39 jmc Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: vis.c,v 1.9 2004/09/14 23:01:06 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: vis.c,v 1.10 2005/04/10 13:53:39 jmc Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -182,7 +182,7 @@ usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-cbflnostw] [-F [foldwidth]] [file ...]\n",
+ fprintf(stderr, "usage: %s [-cbflnostw] [-F foldwidth] [file ...]\n",
__progname);
exit(1);
}