diff options
author | Rob Landley <rob@landley.net> | 2017-05-27 14:57:45 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-05-27 14:57:45 -0500 |
commit | 8fb41fc77ff29091a562c42f6ad83ba19d24fa03 (patch) | |
tree | cc2fb9d0353c9a3a90852e72b66b585cf71072ff /toys/other | |
parent | eb7e847adcecf11cd8fd99077ba3a582abe60146 (diff) | |
download | toybox-8fb41fc77ff29091a562c42f6ad83ba19d24fa03.tar.gz |
Add separators in help -a with command name.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/help.c | 5 |
1 files changed, 5 insertions, 0 deletions
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("<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"); } |