doc: date: clarify which options are mutually exclusive

* src/date.c (usage): Specify that --date, --file, --reference,
and --resolution are mutually exclusive.  This is also useful
documentation to group similar options.
* doc/coreutils.texi (Options for date): Likewise.
Addresses https://bugs.gnu.org/55401
This commit is contained in:
Pádraig Brady committed 2022-07-24 21:09:24 +01:00
1 parent 854e035121
commit 56783caccf
2 files changed
+9

No files matched your search

+4
View File
@@ -16426,6 +16426,10 @@ relative to Universal Time rather than to the local time zone.
The program accepts the following options. Also see @ref{Common options}.
Except for @option{-u}, these options are all GNU extensions to POSIX.
All options that specify the date to display are mutually exclusive.
I.e.: @option{--date}, @option{--file}, @option{--reference},
@option{--resolution}.
@table @samp
@item -d @var{datestr}
+5
View File
@@ -183,6 +183,11 @@ With -s, or with [MMDDhhmm[[CC]YY][.ss]], set the date and time.\n\
fputs (VERSION_OPTION_DESCRIPTION, stdout);
fputs (_("\
\n\
All options that specify the date to display are mutually exclusive.\n\
I.e.: --date, --file, --reference, --resolution.\n\
"), stdout);
fputs (_("\
\n\
FORMAT controls the output. Interpreted sequences are:\n\
\n\
%% a literal %\n\