(main): When failing due to too few arguments, also say

that rather than just "Try `uname --help' for more information.".
This commit is contained in:
Jim Meyering committed 2003-05-10 14:17:46 +00:00
1 parent 13f9aa90fa
commit dfd12de6b9
1 file changed
+5 -2
+5 -2
View File
@@ -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);