static command_t CommandTable[] =
{
- {"help", CmdHelp, 1, "This help"},
+ {"help", CmdHelp, 1, "This help. Use '<command> help' for details of the following commands:\n"},
{"data", CmdData, 1, "Plot window / data buffer manipulation"},
{"exit", CmdQuit, 1, "Exit program"},
{"hf", CmdHF, 1, "HF commands"},
PrintAndLog("unrecognized command %08x\n", UC->cmd);
break;
}
-}
\ No newline at end of file
+}
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");
}