about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nq.c2
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);