From: Pádraig Brady
Date: Sat, 22 Mar 2025 12:28:56 +0000 (+0000) Subject: doc: id: be direct about valid options with -nr X-Git-Tag: v9.7~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3160f8bfa83f4134b131b1ac8ab54edb7081f078;p=thirdparty%2Fcoreutils.git doc: id: be direct about valid options with -nr * src/id.c (usage): State what options are valid with -nr, rather than just stating the default format is invalid. Fixes https://bugs.gnu.org/77163 --- diff --git a/src/id.c b/src/id.c index 2f1df41f0d..d69e6e3236 100644 --- a/src/id.c +++ b/src/id.c @@ -198,7 +198,7 @@ main (int argc, char **argv) if (default_format && (use_real || use_name)) error (EXIT_FAILURE, 0, - _("cannot print only names or real IDs in default format")); + _("printing only names or real IDs requires -u, -g, or -G")); if (default_format && opt_zero) error (EXIT_FAILURE, 0,