commit | 8fb41fc77ff29091a562c42f6ad83ba19d24fa03 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sat May 27 14:57:45 2017 -0500 |
committer | Rob Landley <rob@landley.net> | Sat May 27 14:57:45 2017 -0500 |
tree | cc2fb9d0353c9a3a90852e72b66b585cf71072ff | |
parent | eb7e847adcecf11cd8fd99077ba3a582abe60146 [diff] |
Add separators in help -a with command name.
diff --git a/toys/other/help.c b/toys/other/help.c index 4722528..f7d8481 100644 --- a/toys/other/help.c +++ b/toys/other/help.c
@@ -68,6 +68,11 @@ for (i = 0; i < toys.toycount; i++) { if (toys.optflags & FLAG_h) xprintf("<hr>\n<pre>\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("</pre>\n"); }