diff options
Diffstat (limited to 'nq.c')
-rw-r--r-- | nq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nq.c b/nq.c index 13a1e5d..6783b88 100644 --- a/nq.c +++ b/nq.c @@ -1,5 +1,5 @@ /* - * nq [-w] CMD... - run CMD... in background and in order, saving output + * nq [-w | CMD...] - run CMD... in background and in order, saving output * -w wait for all jobs queued so far to finish * * - requires POSIX.1-2008 @@ -93,9 +93,9 @@ main(int argc, char *argv[]) } } - if (argc <= 1) { + if (argc <= 1 || (wflag && argc != 2)) { usage: - swrite(2, "usage: nq [-w] CMD...\n"); + swrite(2, "usage: nq [-w | CMD...]\n"); exit(1); } |