[hackers] [sbase] fold: Fix usage and manpage for -width || sin

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:54:09 +0100 (CET)

commit cb04864692157c23b7d8adc1de82a8c00bcd879a
Author: sin <sin_AT_2f30.org>
Date: Thu Mar 5 08:15:23 2015 +0000

    fold: Fix usage and manpage for -width

diff --git a/fold.1 b/fold.1
index 7ecbac6..46f7004 100644
--- a/fold.1
+++ b/fold.1
_AT_@ -1,4 +1,4 @@
-.Dd January 25, 2015
+.Dd March 5, 2015
 .Dt FOLD 1
 .Os sbase
 .Sh NAME
_AT_@ -7,8 +7,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl bs
-.Op Fl w Ar width
-.Op Fl N
+.Op Fl w Ar width | Fl Ns Ar width
 .Op Ar file ...
 .Sh DESCRIPTION
 .Nm
_AT_@ -27,11 +26,9 @@ Count bytes rather than characters.
 If a line contains spaces, break
 at the last space within
 .Ar width .
-.It Fl w Ar width | Fl N
+.It Fl w Ar width | Fl Ns Ar width
 Break at
 .Ar width
-|
-.Sy N
 characters. Default is 80.
 .El
 .Sh STANDARDS
_AT_@ -41,6 +38,6 @@ utility is compliant with the
 .St -p1003.1-2008
 specification.
 .Pp
-The
-.Op Fl N
-flag is an extension to that specification.
+The obsolete
+.Op Fl Ns Ar width
+syntax is an extension to that specification.
diff --git a/fold.c b/fold.c
index 14c0812..85eb3b1 100644
--- a/fold.c
+++ b/fold.c
_AT_@ -65,7 +65,7 @@ fold(FILE *fp, size_t width)
 static void
 usage(void)
 {
- eprintf("usage: %s [-bs] [-w width] [-N] [FILE...]\n", argv0);
+ eprintf("usage: %s [-bs] [-w width | -width] [FILE...]\n", argv0);
 }
 
 int
Received on Tue Mar 24 2015 - 23:54:09 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:11:25 CET