From ab33097058b05a173113832fcca6b8d6c3b6143d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 5 Jun 2017 21:22:02 -0500 Subject: 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. --- lib/lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lib.c') 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); -- cgit v1.2.3