From: Jim Meyering Date: Thu, 16 Aug 2001 05:47:48 +0000 (+0000) Subject: (main): When there are too many non-option arguments, X-Git-Tag: TEXTUTILS-2_0_15~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=652303d9079f34d7484c4b9410582885dbbd3509;p=thirdparty%2Fcoreutils.git (main): When there are too many non-option arguments, include the first offending argument in the diagnostic. Suggestion from Karl Berry. --- diff --git a/src/date.c b/src/date.c index ac38f87fa3..64aeed4a2a 100644 --- a/src/date.c +++ b/src/date.c @@ -341,7 +341,8 @@ main (int argc, char **argv) if (n_args > 1) { - error (0, 0, _("too many non-option arguments")); + error (0, 0, _("too many non-option arguments: %s%s"), + argv[optind + 1], n_args == 2 ? "" : " ..."); usage (1); }