#include <string.h>
#include "ui.h"
#include "cmdparser.h"
+#include "proxmark3.h"
void CmdsHelp(const command_t Commands[])
{
if(matches == 1) i=last_match;
}
- if (Commands[i].Name)
+ if (Commands[i].Name) {
+ while (Cmd[len] == ' ')
+ ++len;
Commands[i].Parse(Cmd + len);
- else
- // show help (always first in array) for selected hierarchy or if command not recognised
+ } else {
+ // show help for selected hierarchy or if command not recognised
CmdsHelp(Commands);
+ }
}