From 8d1b1630800ee339ce635647500d5b5943b37e4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Wed, 27 Jul 2016 10:05:20 +0100 Subject: [PATCH] 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 --- doc/coreutils.texi | 2 +- src/date.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (_("\ -- 2.47.2