]> git.sur5r.net Git - ngadmin/blob - cli/com_help.c
Cli: refactor, change coding style
[ngadmin] / cli / com_help.c
1
2 #include "commands.h"
3
4
5 bool do_help (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED)
6 {
7         const struct TreeNode *s;
8         
9         printf("Available commands: \n");
10         
11         for (s = coms.sub; s->name != NULL; s++)
12                 printf("%s ", s->name);
13         putchar('\n');
14         
15         return true;
16 }
17
18