From e22443c6332c7ce2e38b395cd397b9b0da6b5145 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 16 Aug 2021 00:33:02 -0500 Subject: [PATCH] Don't show "toybox" header line for "help" output unless called with no args. (It still shows it for "ls --help" and bare "help", but not "help ls".) --- toys/other/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/help.c b/toys/other/help.c index ab168c66..1cdbe7e1 100644 --- a/toys/other/help.c +++ b/toys/other/help.c @@ -30,7 +30,7 @@ static void do_help(struct toy_list *t) xprintf("

%s

\n", t->name, t->name);
 
   toys.which = t;
-  show_help(stdout, FLAG(h)+!FLAG(u));
+  show_help(stdout, !FLAG(u)+(!!toys.argv[1]<<1));
 
   if (FLAG(h)) xprintf("
\n"); } -- 2.39.2