diff options
-rw-r--r-- | nq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nq.c b/nq.c index d83fa02..78431fb 100644 --- a/nq.c +++ b/nq.c @@ -132,7 +132,7 @@ main(int argc, char *argv[]) } } - if (argc <= 1) { + if (argc <= optind) { usage: swrite(2, "usage: nq [-c] [-q] [-w ... | -t ... | CMD...]\n"); exit(1); |