cliparser cleaning

checked cmdhf.c and cmddata.c and tweaked cliparser.c
This commit is contained in:
mwalker33 2020-09-30 07:55:51 +10:00
commit 561c5f779e
3 changed files with 6 additions and 7 deletions

View file

@ -77,7 +77,7 @@ int CLIParserParseArg(CLIParserContext *ctx, int argc, char **argv, void *vargta
PrintAndLogEx(NORMAL,"");
if (ctx->programHelp) {
PrintAndLogEx(NORMAL,_SectionTagColor_("examples:"));
PrintAndLogEx(NORMAL,_SectionTagColor_("examples/notes:"));
char *buf = NULL;
int idx = 0;
buf = realloc (buf,strlen (ctx->programHelp)+1); // more then enough as we are splitting

View file

@ -14,7 +14,7 @@
#include <stdlib.h>
#include "util.h"
#define arg_param_begin arg_lit0("hH", "help", "This help")
#define arg_param_begin arg_lit0("h", "help", "This help")
#define arg_param_end arg_end(20)
#define arg_getsize(a) (sizeof(a) / sizeof(a[0]))