From 8fb41fc77ff29091a562c42f6ad83ba19d24fa03 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 27 May 2017 14:57:45 -0500 Subject: Add separators in help -a with command name. --- toys/other/help.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toys/other/help.c') diff --git a/toys/other/help.c b/toys/other/help.c index 4722528c..f7d84817 100644 --- a/toys/other/help.c +++ b/toys/other/help.c @@ -68,6 +68,11 @@ void help_main(void) for (i = 0; i < toys.toycount; i++) { if (toys.optflags & FLAG_h) xprintf("
\n
\n");
+    else {
+      memset(toybuf, '-', 78);
+      memcpy(toybuf+3, toy_list[i].name, strlen(toy_list[i].name));
+      printf("%s\n\n", toybuf);
+    }
     do_help(toy_list+i);
     if (toys.optflags & FLAG_h) xprintf("
\n"); } -- cgit v1.2.3