#include #include "internal/cli/option.h" const struct command_descriptor * find_command(const char *name) { const struct command_descriptor *cmd; for (cmd = g_commands; NULL != cmd->name; cmd++) if (0 == strcmp(cmd->name, name)) return cmd; return NULL; }