On 18/03/2023 03:15, Dan Jacobson wrote:
man uniq has all the other long option names, except for -D's

        -d, --repeated
               only print duplicate lines, one for each group

        -D     print all duplicate lines

        --all-repeated[=METHOD]
               like  -D,  but  allow  separating  groups  with  an  empty line;
               METHOD={none(default),prepend,separate}

One needs to see (info "(coreutils) uniq invocation") to find it.
Please add it to the man page.

Fair point.
Fixed in the attached.

marking this as done,

thanks,
Pádraig
From ad6aa09d8466a9b63465e22ce877b0558b180741 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <p...@draigbrady.com>
Date: Sat, 18 Mar 2023 11:35:46 +0000
Subject: [PATCH] doc: uniq: use more standard description of -D long option

* src/uniq.c: Describe -D and --all-repeated together,
as with all other long options.
Fixes https://bugs.gnu.org/62249
---
 src/uniq.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/uniq.c b/src/uniq.c
index ad0c1d6ae..fb0f0cb89 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -181,10 +181,9 @@ With no options, matching lines are merged to the first occurrence.\n\
   -d, --repeated        only print duplicate lines, one for each group\n\
 "), stdout);
      fputs (_("\
-  -D                    print all duplicate lines\n\
-      --all-repeated[=METHOD]  like -D, but allow separating groups\n\
-                                 with an empty line;\n\
-                                 METHOD={none(default),prepend,separate}\n\
+  -D, --all-repeated[=METHOD]  print all duplicate lines,\n\
+                          optionally separating groups with an empty line;\n\
+                          METHOD={none(default),prepend,separate}\n\
 "), stdout);
      fputs (_("\
   -f, --skip-fields=N   avoid comparing the first N fields\n\
-- 
2.26.2

Reply via email to