diff options
author | Elliott Hughes <enh@google.com> | 2019-03-18 20:37:53 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-18 23:37:05 -0500 |
commit | 95574e3f2a47291651f7c78c873318344565e80e (patch) | |
tree | e3ff1282473f9f0724770fec64b2a4b3457364e2 /toys/posix/env.c | |
parent | 7709875b443fcd155e1737f18d3fff75c4b2753a (diff) | |
download | toybox-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/env.c')
-rw-r--r-- | toys/posix/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/env.c b/toys/posix/env.c index 2de8f690..5c7bb789 100644 --- a/toys/posix/env.c +++ b/toys/posix/env.c @@ -6,13 +6,13 @@ * * Deviations from posix: "-" argument and -0 -USE_ENV(NEWTOY(env, "^0iu*", TOYFLAG_USR|TOYFLAG_BIN)) +USE_ENV(NEWTOY(env, "^0iu*", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(125))) config ENV bool "env" default y help - usage: env [-i] [-u NAME] [NAME=VALUE...] [command [option...]] + usage: env [-i] [-u NAME] [NAME=VALUE...] [COMMAND [ARG...]] Set the environment for command invocation, or list environment variables. |