1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-15 11:52:15 +02:00

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
2022-07-24 20:49:29 +01:00
parent 854e035121
commit 56783caccf
2 changed files with 9 additions and 0 deletions

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}

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\