(main): Handle the case in which seq is given no args.

This commit is contained in:
Jim Meyering
1999-04-26 00:39:47 +00:00
parent 6002b5a2ed
commit bf73dd5297
+6
View File
@@ -140,6 +140,12 @@ main (int argc, char **argv)
}
#endif
if (argc == 1)
{
error (0, 0, _("too few arguments"));
usage (1);
}
/* We have to handle negative numbers in the command line but this
conflicts with the command line arguments. So explicitly check first
whether the next argument looks like a negative number. */