diff --git a/client/cmdlf.c b/client/cmdlf.c index 80a9dc268..40bb8a215 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -5,6 +5,7 @@ #include "graph.h" #include "ui.h" #include "cmdparser.h" +#include "cmdmain.h" #include "cmddata.h" #include "cmdlf.h" #include "cmdlfhid.h" diff --git a/client/cmdparser.c b/client/cmdparser.c index 6fca29c2b..74ae29bba 100644 --- a/client/cmdparser.c +++ b/client/cmdparser.c @@ -29,5 +29,5 @@ void CmdsParse(const command_t Commands[], const char *Cmd) Commands[i].Parse(Cmd + len); else // show help (always first in array) for selected hierarchy or if command not recognised - Commands[0].Parse("help"); + CmdsHelp(Commands); }