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
This commit is contained in:
Pádraig Brady
2025-03-22 12:28:56 +00:00
parent 446a4c95f9
commit 3160f8bfa8

View File

@@ -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,