make parser slightly more user friendly (default to 'help')
This commit is contained in:
1 parent
92e592ce71
commit
c37d2e7078
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -28,5 +28,6 @@ void CmdsParse(const command_t Commands[], const char *Cmd)
|
||||
if (Commands[i].Name)
|
||||
Commands[i].Parse(Cmd + len);
|
||||
else
|
||||
PrintAndLog("Command not found");
|
||||
// show help (always first in array) for selected hierarchy or if command not recognised
|
||||
Commands[0].Parse("help");
|
||||
}
|
||||
Reference in new issue
Block a user