Add -h/--help support to last commands

This commit is contained in:
Philippe Teuwen
2021-04-19 01:43:26 +02:00
parent d2246e6606
commit 11c7ead732
3 changed files with 46 additions and 4 deletions

View File

@@ -263,7 +263,17 @@ static int CmdMsleep(const char *Cmd) {
}
static int CmdQuit(const char *Cmd) {
(void)Cmd; // Cmd is not used so far
CLIParserContext *ctx;
CLIParserInit(&ctx, "quit",
"Quit the Proxmark3 client terminal",
"quit"
);
void *argtable[] = {
arg_param_begin,
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
return PM3_EFATAL;
}