Output command help to stdout. */
| 609 | |
| 610 | /* Output command help to stdout. */ |
| 611 | static void cliOutputCommandHelp(struct commandHelp *help, int group) { |
| 612 | printf("\r\n \x1b[1m%s\x1b[0m \x1b[90m%s\x1b[0m\r\n", help->name, help->params); |
| 613 | printf(" \x1b[33msummary:\x1b[0m %s\r\n", help->summary); |
| 614 | printf(" \x1b[33msince:\x1b[0m %s\r\n", help->since); |
| 615 | if (group) { |
| 616 | printf(" \x1b[33mgroup:\x1b[0m %s\r\n", commandGroups[help->group]); |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | /* Print generic help. */ |
| 621 | static void cliOutputGenericHelp(void) { |
no test coverage detected