(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:
		| @@ -89,10 +89,13 @@ sl_help (SL_cmd *cmds, int argc, char **argv) | |||||||
|     } else {  |     } else {  | ||||||
| 	c = sl_match (cmds, argv[1], 0); | 	c = sl_match (cmds, argv[1], 0); | ||||||
| 	if (c == NULL) | 	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]); | 		    argv[1]); | ||||||
| 	else { | 	else { | ||||||
| 	    printf ("%s\t%s", c->name, c->usage); | 	    printf ("%s\t%s", c->name, c->usage); | ||||||
|  | 	    if(c->help && *c->help) | ||||||
|  | 		printf ("%s\n", c->help); | ||||||
| 	    if((++c)->name && c->func == NULL) { | 	    if((++c)->name && c->func == NULL) { | ||||||
| 		printf ("\nSynonyms:"); | 		printf ("\nSynonyms:"); | ||||||
| 		while (c->name && c->func == NULL) | 		while (c->name && c->func == NULL) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund