From: Mikael Magnusson Date: Sun, 27 Jul 2008 15:31:18 +0000 (+0200) Subject: shuf: correctly document --head-count X-Git-Tag: v7.0~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbdcc9fb4ebb49e17244eaa164045b8e04442efd;p=thirdparty%2Fcoreutils.git shuf: correctly document --head-count * src/shuf.c (usage): Correct --help output. * doc/coreutils.texi: Correct option listing. * NEWS: Mention correction. --- diff --git a/NEWS b/NEWS index 3be1ad4671..196dc48f5f 100644 --- a/NEWS +++ b/NEWS @@ -40,6 +40,9 @@ GNU coreutils NEWS -*- outline -*- od no longer suffers from platform bugs in printf(3). This is probably most noticeable when using 'od -tfL' to print long doubles. + shuf --head-count is now correctly documented. The documentation + previously claimed it was called --head-lines. + ** Improvements Improved support for access control lists (ACLs): On MacOS X, Solaris 7..10, diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 8eb8ac9da4..76b22e44de 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -4176,11 +4176,11 @@ operation modes: @table @samp @item -n @var{lines} -@itemx --head-lines=@var{lines} +@itemx --head-count=@var{count} @opindex -n -@opindex --head-lines +@opindex --head-count @cindex head of output -Output at most @var{lines} lines. By default, all input lines are +Output at most @var{count} lines. By default, all input lines are output. @item -o @var{output-file} diff --git a/src/shuf.c b/src/shuf.c index 5e07d6e492..977eedc0a5 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -60,7 +60,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ fputs (_("\ -e, --echo treat each ARG as an input line\n\ -i, --input-range=LO-HI treat each number LO through HI as an input line\n\ - -n, --head-lines=LINES output at most LINES lines\n\ + -n, --head-count=COUNT output at most COUNT lines\n\ -o, --output=FILE write result to FILE instead of standard output\n\ --random-source=FILE get random bytes from FILE (default /dev/urandom)\n\ -z, --zero-terminated end lines with 0 byte, not newline\n\