mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(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:
1 parent
13f9aa90fa
commit
dfd12de6b9
1 file changed
+5
-2
+5
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user