(sl_help): actually use the help' field of SL_cmd'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3635 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-19 23:12:40 +00:00
parent 9a69980f2a
commit 9b80ffd367

View File

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