summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-01-31 16:37:58 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-01-31 16:37:58 +0100
commitb64d79ee0d4119edf5f0e1f5ce72a8c976724bd4 (patch)
treee1ecbbcdc75b24e692690ed890035cbc39287f03
parent2e775ff6f3a15c575b4ba4cf72e6db31cc7a227d (diff)
downloadnq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.tar.gz
nq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.tar.xz
nq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.zip
nq: fix -w and -t without arguments
-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);