summary refs log tree commit diff
path: root/nq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nq.c')
-rw-r--r--nq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nq.c b/nq.c
index 78431fb..d6208a1 100644
--- a/nq.c
+++ b/nq.c
@@ -132,7 +132,7 @@ main(int argc, char *argv[])
 		}
 	}
 
-	if (argc <= optind) {
+	if (!tflag && !wflag && argc <= optind) {
 usage:
 		swrite(2, "usage: nq [-c] [-q] [-w ... | -t ... | CMD...]\n");
 		exit(1);