and better....

This commit is contained in:
merlokk 2017-11-19 18:37:55 +02:00
commit 4d314995d6
2 changed files with 5 additions and 2 deletions

View file

@ -11,6 +11,9 @@
#include "argtable3.h"
#include "util.h"
#define arg_param_begin arg_lit0("hH", "help", "print this help and exit")
#define arg_param_end arg_end(20)
#define arg_get_lit(n)(((struct arg_lit*)argtable[n]))
#define arg_get_str(n)(((struct arg_str*)argtable[n]))

View file

@ -737,12 +737,12 @@ int CmdHF14AAPDU(const char *cmd) {
void* argtable[] = {ahelp, as, ak, at, astr, aend};
*/
void* argtable[] = {
arg_lit0("hH", "help", "print this help and exit"),
arg_param_begin,
arg_lit0("sS", "select", "activate field and select card"),
arg_lit0("kK", "keep", "leave the signal field ON after receive response"),
arg_lit0("tT", "tlv", "executes TLV decoder if it possible"),
arg_str1(NULL, NULL, "<APDU (hex)>", NULL),
arg_end(20)
arg_param_end
};
if (CLParserParseString(cmd, argtable, sizeof(argtable) / sizeof(argtable[0])))
return 0;