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