projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ebfbee
)
(main): When there are too many non-option arguments,
author
Jim Meyering
<jim@meyering.net>
Thu, 16 Aug 2001 05:47:48 +0000
(
05:47
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 16 Aug 2001 05:47:48 +0000
(
05:47
+0000)
include the first offending argument in the diagnostic.
Suggestion from Karl Berry.
src/date.c
patch
|
blob
|
history
diff --git
a/src/date.c
b/src/date.c
index
ac38f87
..
64aeed4
100644
(file)
--- 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);
}