]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
wc: fix missing documentation for the --debug option
authorPádraig Brady <P@draigBrady.com>
Fri, 14 Nov 2025 17:21:00 +0000 (17:21 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 16 Nov 2025 17:18:03 +0000 (17:18 +0000)
* doc/coreutils.texi (wc invocation): Desscribe --debug.
* src/wc.c (usage): Likewise.
* NEWS: Mention the bug fix.

NEWS
doc/coreutils.texi
src/wc.c

diff --git a/NEWS b/NEWS
index 61d78425284bc3863c6bf1a486cd932f8203feeb..b344452dba44f7fbb6ce247b4ba3eb084a9bbec0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,10 @@ GNU coreutils NEWS                                    -*- outline -*-
   This also applies to the sha*sum and b2sum utilities.
   [This bug was present in "the beginning".]
 
+  wc now documents its --debug option, currently used to
+  indicate the line count acceleration being used.
+  [bug introduced in coreutils-9.0]
+
 
 * Noteworthy changes in release 9.9 (2025-11-10) [stable]
 
index 0218a76c84a88640b83b46705af49cb6a9b98da8..618889e402200e9b56d796182c03fd323a75ebd1 100644 (file)
@@ -3992,6 +3992,11 @@ Print only the newline character counts.
 If a file ends in a non-newline character,
 its trailing partial line is not counted.
 
+@item --debug
+@opindex --debug
+Output extra information to standard error.
+Currently; print the line count acceleration implementation being used.
+
 @item -L
 @itemx --max-line-length
 @opindex -L
index 2433993937ec7dbad937867f712f2f00b8d3a44f..6b46412fb8cca4c26c39eb2c5876ff3ed7890697 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -187,6 +187,9 @@ the following order: newline, word, character, byte, maximum line length.\n\
   -c, --bytes            print the byte counts\n\
   -m, --chars            print the character counts\n\
   -l, --lines            print the newline counts\n\
+"), stdout);
+      fputs (_("\
+      --debug            indicate what line count acceleration is used\n\
 "), stdout);
       fputs (_("\
       --files0-from=F    read input from the files specified by\n\