- if(strcmp( Cmd, "XX_internal_command_dump_XX") == 0)
- {// Help dump children
- dumpCommandsRecursive(Commands, 0);
- return;
- }
- if(strcmp( Cmd, "XX_internal_command_dump_markdown_XX") == 0)
- {// Markdown help dump children
- dumpCommandsRecursive(Commands, 1);
- return;
- }
- char cmd_name[32];
- int len = 0;
- memset(cmd_name, 0, 32);
- sscanf(Cmd, "%31s%n", cmd_name, &len);
- int i = 0;
- while (Commands[i].Name && strcmp(Commands[i].Name, cmd_name))
- ++i;
+ if(strcmp( Cmd, "XX_internal_command_dump_XX") == 0)
+ {// Help dump children
+ dumpCommandsRecursive(Commands, 0);
+ return 0;
+ }
+ if(strcmp( Cmd, "XX_internal_command_dump_markdown_XX") == 0)
+ {// Markdown help dump children
+ dumpCommandsRecursive(Commands, 1);
+ return 0;
+ }
+ char cmd_name[32];
+ int len = 0;
+ memset(cmd_name, 0, 32);
+ sscanf(Cmd, "%31s%n", cmd_name, &len);
+ int i = 0;
+ while (Commands[i].Name && strcmp(Commands[i].Name, cmd_name))
+ ++i;