summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-07-27 10:05:20 +0100
committerPádraig Brady <P@draigBrady.com>2016-07-27 17:08:24 +0100
commit8d1b1630800ee339ce635647500d5b5943b37e4d (patch)
treeb0b2d3d4e63288fd2997e368c217f6f658b6883a
parenta69e54cfdf7e5d8c2c3fe315ded649272d7e8711 (diff)
downloadcoreutils-8d1b1630800ee339ce635647500d5b5943b37e4d.tar.xz
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
-rw-r--r--doc/coreutils.texi2
-rw-r--r--src/date.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 914aec725..b85404b5c 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 e73196b96..a9a580c26 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 (_("\