Cleanup printing of help strings.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4506 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-03-01 04:14:33 +00:00
parent 4ac6cfc07e
commit 6c7a2f0901

View File

@@ -93,15 +93,15 @@ sl_help (SL_cmd *cmds, int argc, char **argv)
"Try \"help\" for a list of all commands\n", "Try \"help\" for a list of all commands\n",
argv[1]); argv[1]);
else { else {
printf ("%s\t%s", c->name, c->usage); printf ("%s\t%s\n", c->name, c->usage);
if(c->help && *c->help) if(c->help && *c->help)
printf ("%s\n", c->help); printf ("%s\n", c->help);
if((++c)->name && c->func == NULL) { if((++c)->name && c->func == NULL) {
printf ("\nSynonyms:"); printf ("Synonyms:");
while (c->name && c->func == NULL) while (c->name && c->func == NULL)
printf ("\t%s", (c++)->name); printf ("\t%s", (c++)->name);
printf ("\n");
} }
printf ("\n");
} }
} }
} }