mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
cliparser doesnt liek empty strings, should be NULL instead
This commit is contained in:
parent
5604afce7a
commit
150579f375
2 changed files with 4 additions and 3 deletions
|
@ -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", "", "<dec>", "num of samples (512 - 40000)"),
|
||||
arg_int0("n", NULL, "<dec>", "num of samples (512 - 40000)"),
|
||||
arg_lit0("v", "verbose", "verbose"),
|
||||
arg_param_end
|
||||
};
|
||||
|
|
|
@ -1428,7 +1428,7 @@ int CmdEM4x05Brute(const char *Cmd) {
|
|||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_u64_0("s", "start", "<pwd>", "Start bruteforce enumeration from this password value"),
|
||||
arg_int0("n", "", "<digits>", "Stop after having found n candidates. Default: 0 => infinite"),
|
||||
arg_int0("n", NULL, "<digits>", "Stop after having found n candidates. Default: 0 => infinite"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue