Fix offline column in help dump

This commit is contained in:
Philippe Teuwen 2014-03-26 22:29:41 +01:00
parent 57c695563f
commit b5727175c0

View file

@ -85,7 +85,6 @@ void dumpCommandsRecursive(const command_t cmds[])
int i = 0;
char* tabulation = "###";
char* offline = "N";
// First, dump all single commands, which are not a container for
// other commands
printf("command|offline|description\n");
@ -93,6 +92,7 @@ void dumpCommandsRecursive(const command_t cmds[])
while (cmds[i].Name)
{
char* offline = "N";
if(cmds[i].Help[0] == '{' && ++i) continue;
if ( cmds[i].Offline) offline = "Y";