]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: make date(1) synopsis consistent with output +FORMAT
authorPádraig Brady <P@draigBrady.com>
Wed, 27 Jul 2016 09:05:20 +0000 (10:05 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Jul 2016 16:08:24 +0000 (17:08 +0100)
* 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

doc/coreutils.texi
src/date.c

index 914aec7255df18359a9fc31356db8145e68baf75..b85404b5c3acc1dde5562a0fdab4d92285ff9e47 100644 (file)
@@ -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
index e73196b96c2388fbfcdc2ada61be43b8cbb04ca6..a9a580c262954592273f3b581ac6258f3f37fc7b 100644 (file)
@@ -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 (_("\