From dfd12de6b9b77a7154e9b892ace702c764830040 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 May 2003 14:17:46 +0000 Subject: (main): When failing due to too few arguments, also say that rather than just "Try `uname --help' for more information.". --- src/comm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2