commit | ab33097058b05a173113832fcca6b8d6c3b6143d | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Jun 05 21:22:02 2017 -0500 |
committer | Rob Landley <rob@landley.net> | Mon Jun 05 21:22:02 2017 -0500 |
tree | b4f3a2aee03982b059d0cdf5d674126e09328e15 | |
parent | 32550751997db5b15baca56e72c54ed8ade53bd6 [diff] [blame] |
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.
diff --git a/lib/lib.c b/lib/lib.c index b6277f3..d11c600 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -66,7 +66,8 @@ { 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);