diff options
author | Leah Neukirchen <leah@vuxu.org> | 2018-01-31 16:37:58 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2018-01-31 16:37:58 +0100 |
commit | b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4 (patch) | |
tree | e1ecbbcdc75b24e692690ed890035cbc39287f03 | |
parent | 2e775ff6f3a15c575b4ba4cf72e6db31cc7a227d (diff) | |
download | nq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.tar.gz nq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.tar.xz nq-b64d79ee0d4119edf5f0e1f5ce72a8c976724bd4.zip |
nq: fix -w and -t without arguments
-rw-r--r-- | nq.c | 2 |
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); |