aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-06-05 21:22:02 -0500
committerRob Landley <rob@landley.net>2017-06-05 21:22:02 -0500
commitab33097058b05a173113832fcca6b8d6c3b6143d (patch)
treeb4f3a2aee03982b059d0cdf5d674126e09328e15 /lib/lib.c
parent32550751997db5b15baca56e72c54ed8ade53bd6 (diff)
downloadtoybox-ab33097058b05a173113832fcca6b8d6c3b6143d.tar.gz
Have help_exit() give a brief "See %s --help" message instead of the
full help text, and put it back in the args constraint failures.
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index b6277f3b..d11c600e 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -66,7 +66,8 @@ void help_exit(char *msg, ...)
{
va_list va;
- if (CFG_TOYBOX_HELP) show_help(stderr);
+ if (CFG_TOYBOX_HELP)
+ fprintf(stderr, "See %s --help\n", toys.which->name);
if (msg) {
va_start(va, msg);