modify argtable parser to parse ints with spaces (#683)

* modify argtable parser to parse ints with spaces
* added arg_strx1 and arg_strx0 for x str arguments in one
* added option to clue data in arg parser
* add new argtable logic to emv commands and small fix
* small fix in GPO help
* small GPO fix
This commit is contained in:
Oleg Moiseenko 2018-10-01 21:12:14 +03:00 committed by pwpiwi
commit 11146fc1e1
4 changed files with 33 additions and 12 deletions

View file

@ -742,7 +742,7 @@ int CmdHF14AAPDU(const char *cmd) {
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_strx1(NULL, NULL, "<APDU (hex)>", NULL),
arg_param_end
};
CLIExecWithReturn(cmd, argtable, false);
@ -807,7 +807,7 @@ int CmdHF14ACmdRaw(const char *cmd) {
arg_int0("t", "timeout", NULL, "timeout in ms"),
arg_lit0("T", "topaz", "use Topaz protocol to send command"),
arg_lit0("3", NULL, "ISO14443-3 select only (skip RATS)"),
arg_str1(NULL, NULL, "<data (hex)>", NULL),
arg_strx1(NULL, NULL, "<data (hex)>", NULL),
arg_param_end
};
// defaults