From: Pádraig Brady Date: Wed, 27 Jul 2016 09:05:20 +0000 (+0100) Subject: doc: make date(1) synopsis consistent with output +FORMAT X-Git-Tag: v8.26~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d1b1630800ee339ce635647500d5b5943b37e4d;p=thirdparty%2Fcoreutils.git doc: make date(1) synopsis consistent with output +FORMAT * src/date.c (usage): Make the characters used to summarize the input format, match the output +FORMAT characters. * doc/coreutils.texi (date invocation): Likewise. Fixes http://bugs.gnu.org/24077 --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 914aec7255..b85404b5c3 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -15018,7 +15018,7 @@ Synopses: @example date [@var{option}]@dots{} [+@var{format}] date [-u|--utc|--universal] @c this avoids a newline in the output -[ MMDDhhmm[[CC]YY][.ss] ] +[ mmddHHMM[[CC]yy][.SS] ] @end example @vindex LC_TIME diff --git a/src/date.c b/src/date.c index e73196b96c..a9a580c262 100644 --- a/src/date.c +++ b/src/date.c @@ -122,7 +122,7 @@ usage (int status) { printf (_("\ Usage: %s [OPTION]... [+FORMAT]\n\ - or: %s [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]\n\ + or: %s [-u|--utc|--universal] [mmddHHMM[[CC]yy][.SS]]\n\ "), program_name, program_name); fputs (_("\