aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cmp.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-18 20:37:53 -0700
committerRob Landley <rob@landley.net>2019-03-18 23:37:05 -0500
commit95574e3f2a47291651f7c78c873318344565e80e (patch)
treee3ff1282473f9f0724770fec64b2a4b3457364e2 /toys/posix/cmp.c
parent7709875b443fcd155e1737f18d3fff75c4b2753a (diff)
downloadtoybox-95574e3f2a47291651f7c78c873318344565e80e.tar.gz
cmp/env/nice/nohup/sort: use TOYFLAG_ARGFAIL.
Also be a bit more consistent about `COMMAND [ARG...]` in usage text.
Diffstat (limited to 'toys/posix/cmp.c')
-rw-r--r--toys/posix/cmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/posix/cmp.c b/toys/posix/cmp.c
index 6cd410fc..c573f02e 100644
--- a/toys/posix/cmp.c
+++ b/toys/posix/cmp.c
@@ -4,7 +4,7 @@
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cmp.html
-USE_CMP(NEWTOY(cmp, "<2>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN))
+USE_CMP(NEWTOY(cmp, "<2>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)))
config CMP
bool "cmp"
@@ -81,4 +81,3 @@ void cmp_main(void)
loopfiles_rw(toys.optargs, O_CLOEXEC|(WARN_ONLY*!(toys.optflags&FLAG_s)), 0,
do_cmp);
}
-