diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-26 00:39:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-26 00:39:47 +0000 |
commit | bf73dd529725dbfdf95c768792b77f87b190cd14 (patch) | |
tree | 77aebbf4beafccc1b4d57da986d0a8d91b6ae2e3 /src | |
parent | 6002b5a2ed68cdc7463bf65df4652f2d3bf91578 (diff) | |
download | coreutils-bf73dd529725dbfdf95c768792b77f87b190cd14.tar.xz |
(main): Handle the case in which seq is given no args.
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |