From 150579f3752b5e806de8dec89f79d07a80ca31da Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 19 Apr 2021 22:47:20 +0200 Subject: [PATCH] cliparser doesnt liek empty strings, should be NULL instead --- client/src/cmddata.c | 5 +++-- client/src/cmdlfem4x05.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index ad67126be..1e96e92d6 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -1800,11 +1800,12 @@ static int CmdSamples(const char *Cmd) { CLIParserInit(&ctx, "data samples", "Get raw samples for graph window (GraphBuffer) from device.\n" "If 0, then get whole big buffer from device.", - "data samples" + "data samples\n" + "data samples -n 10000" ); void *argtable[] = { arg_param_begin, - arg_int0("n", "", "", "num of samples (512 - 40000)"), + arg_int0("n", NULL, "", "num of samples (512 - 40000)"), arg_lit0("v", "verbose", "verbose"), arg_param_end }; diff --git a/client/src/cmdlfem4x05.c b/client/src/cmdlfem4x05.c index 99ce8a9bf..82acb5bb6 100644 --- a/client/src/cmdlfem4x05.c +++ b/client/src/cmdlfem4x05.c @@ -1428,7 +1428,7 @@ int CmdEM4x05Brute(const char *Cmd) { void *argtable[] = { arg_param_begin, arg_u64_0("s", "start", "", "Start bruteforce enumeration from this password value"), - arg_int0("n", "", "", "Stop after having found n candidates. Default: 0 => infinite"), + arg_int0("n", NULL, "", "Stop after having found n candidates. Default: 0 => infinite"), arg_param_end }; CLIExecWithReturn(ctx, Cmd, argtable, true);