Add -h/--help support to last commands

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

No files matched your search

+11 -1
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;
}