15 #include <sys/queue.h>
33 #define CLI_HELP_PAUSE "<<PauseOutput>>"
34 #define CLI_HELP_NAME_LEN 32
37 TAILQ_ENTRY(help_node) next;
38 char group[CLI_HELP_NAME_LEN];
40 const char **help_data;
87 CNDP_API
int cli_help_add(
const char *group,
struct cli_map *map,
const char **hd);
105 return !strcmp(
"-?", argv[argc - 1]) || !strcmp(
"?", argv[argc - 1]);
134 CNDP_API
int cli_cmd_error(
const char *msg,
const char *group,
int argc,
char **argv);
CNDP_API int cli_help_show_group(const char *group)
CNDP_API int cli_help_show_all(const char *msg)
CNDP_API void cli_help_foreach(void(*func)(void *arg, const char **h), void *arg)
static int is_help(int argc, char **argv)
CNDP_API struct help_node * cli_help_find_group(const char *group)
CNDP_API int cli_cmd_error(const char *msg, const char *group, int argc, char **argv)
CNDP_API int cli_help_add(const char *group, struct cli_map *map, const char **hd)