bug#62249: uniq -D long option name missing from man page

2023-03-18 Thread Pádraig Brady

On 18/03/2023 14:47, Andreas Schwab wrote:

On Mär 18 2023, Pádraig Brady wrote:


+  -D, --all-repeated[=METHOD]  print all duplicate lines,\n\
+  optionally separating groups with an empty line;\n\
+  METHOD={none(default),prepend,separate}\n\


This is wrong.  -D does not take an argument.


Oops. Right.

thanks,
Pádraig






bug#62249: uniq -D long option name missing from man page

2023-03-18 Thread Andreas Schwab
On Mär 18 2023, Pádraig Brady wrote:

> +  -D, --all-repeated[=METHOD]  print all duplicate lines,\n\
> +  optionally separating groups with an empty line;\n\
> +  METHOD={none(default),prepend,separate}\n\

This is wrong.  -D does not take an argument.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#62249: uniq -D long option name missing from man page

2023-03-18 Thread Pádraig Brady

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?= 
Date: Sat, 18 Mar 2023 11:35:46 +
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, --repeatedonly print duplicate lines, one for each group\n\
 "), stdout);
  fputs (_("\
-  -Dprint 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



bug#62249: uniq -D long option name missing from man page

2023-03-17 Thread Dan Jacobson
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.