[hackers] [sbase] tail: Add -num to usage and fix manpage to align with head.1 || sin

From: <git_AT_suckless.org>
Date: Thu, 5 Mar 2015 09:17:55 +0100 (CET)

commit 3bc042e10a4dedafa4ea4784016825e355ca9e51
Author: sin <sin_AT_2f30.org>
Date: Thu Mar 5 08:13:42 2015 +0000

    tail: Add -num to usage and fix manpage to align with head.1

diff --git a/tail.1 b/tail.1
index f3e74c5..05ee3db 100644
--- a/tail.1
+++ b/tail.1
_AT_@ -1,4 +1,4 @@
-.Dd February 9, 2015
+.Dd March 5, 2015
 .Dt TAIL 1
 .Os sbase
 .Sh NAME
_AT_@ -7,7 +7,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl f
-.Op Fl c Ar num | Fl n Ar num | Fl N
+.Op Fl c Ar num | Fl n Ar num | Fl Ns Ar num
 .Op Ar file ...
 .Sh DESCRIPTION
 .Nm
_AT_@ -20,11 +20,10 @@ is given,
 reads from stdin.
 .Sh OPTIONS
 .Bl -tag -width Ds
-.It Fl c Ar num | Fl n Ar num | Fl N
+.It Fl c Ar num | Fl n Ar num | Fl Ns Ar num
 Display final
 .Ar num
 characters | lines |
-.Ar N
 lines. If
 .Ar num
 begins with '+'
_AT_@ -49,6 +48,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 num
+syntax is an extension to that specification.
diff --git a/tail.c b/tail.c
index dc77a68..2711cc9 100644
--- a/tail.c
+++ b/tail.c
_AT_@ -74,7 +74,7 @@ taketail(FILE *fp, const char *str)
 static void
 usage(void)
 {
- eprintf("usage: %s [-f] [-c num | -n num] [file ...]\n", argv0);
+ eprintf("usage: %s [-f] [-c num | -n num | -num] [file ...]\n", argv0);
 }
 
 int
Received on Thu Mar 05 2015 - 09:17:55 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 05 2015 - 09:24:10 CET