aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-05-27 14:57:45 -0500
committerRob Landley <rob@landley.net>2017-05-27 14:57:45 -0500
commit8fb41fc77ff29091a562c42f6ad83ba19d24fa03 (patch)
treecc2fb9d0353c9a3a90852e72b66b585cf71072ff /toys/other
parenteb7e847adcecf11cd8fd99077ba3a582abe60146 (diff)
downloadtoybox-8fb41fc77ff29091a562c42f6ad83ba19d24fa03.tar.gz
Add separators in help -a with command name.
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/help.c5
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");
}