summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-10 14:17:46 +0000
committerJim Meyering <jim@meyering.net>2003-05-10 14:17:46 +0000
commitdfd12de6b9b77a7154e9b892ace702c764830040 (patch)
treee77b084abbc1f131f19d4a3d0928a7c5cb1fab5e /src
parent13f9aa90fab1c02ad2cb9ef525f516434f0fd3da (diff)
downloadcoreutils-dfd12de6b9b77a7154e9b892ace702c764830040.tar.xz
(main): When failing due to too few arguments, also say
that rather than just "Try `uname --help' for more information.".
Diffstat (limited to 'src')
-rw-r--r--src/comm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/comm.c b/src/comm.c
index 00b14357c..6c81fc8c0 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -1,5 +1,5 @@
/* comm -- compare two sorted files line by line.
- Copyright (C) 86, 90, 91, 1995-2002 Free Software Foundation, Inc.
+ Copyright (C) 86, 90, 91, 1995-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -261,7 +261,10 @@ main (int argc, char **argv)
}
if (optind + 2 != argc)
- usage (EXIT_FAILURE);
+ {
+ error (0, 0, _("too few arguments"))
+ usage (EXIT_FAILURE);
+ }
exit (compare_files (argv + optind) == 0
? EXIT_SUCCESS : EXIT_FAILURE);