diff options
-rw-r--r-- | src/comm.c | 7 |
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); |