Output command help to stdout. */
| 416 | |
| 417 | /* Output command help to stdout. */ |
| 418 | static void cliOutputCommandHelp(struct commandHelp *help, int group) { |
| 419 | printf("\r\n \x1b[1m%s\x1b[0m \x1b[90m%s\x1b[0m\r\n", help->name, help->params); |
| 420 | printf(" \x1b[33msummary:\x1b[0m %s\r\n", help->summary); |
| 421 | printf(" \x1b[33msince:\x1b[0m %s\r\n", help->since); |
| 422 | if (group) { |
| 423 | printf(" \x1b[33mgroup:\x1b[0m %s\r\n", commandGroups[help->group]); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | /* Print generic help. */ |
| 428 | static void cliOutputGenericHelp(void) { |