From 7b7698843f28be549dd2fe47521e1e42c51d5ccc Mon Sep 17 00:00:00 2001 From: Christian Molson Date: Sat, 12 Dec 2020 08:29:33 -0500 Subject: [PATCH] EM4x70 fix info text, update parity options to use long options only --- client/src/cmdlfem4x70.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/client/src/cmdlfem4x70.c b/client/src/cmdlfem4x70.c index 0b9a18785..2c845b377 100644 --- a/client/src/cmdlfem4x70.c +++ b/client/src/cmdlfem4x70.c @@ -80,18 +80,18 @@ int CmdEM4x70Info(const char *Cmd) { CLIParserContext *ctx; - CLIParserInit(&ctx, "lf em 4x10 info", + CLIParserInit(&ctx, "lf em 4x70 info", "Tag Information EM4x70\n" " Tag variants include ID48 automotive transponder.\n" " ID48 does not use command parity (default).\n" " V4070 and EM4170 do require parity bit.", "lf em 4x70 info\n" - "lf em 4x70 info -x -> adds parity bit to command\n" + "lf em 4x70 info --par -> adds parity bit to command\n" ); void *argtable[] = { arg_param_begin, - arg_lit0("x", "parity", "Add parity bit when sending commands"), + arg_lit0(NULL, "par", "Add parity bit when sending commands"), arg_param_end }; @@ -124,17 +124,17 @@ int CmdEM4x70Write(const char *Cmd) { CLIParserContext *ctx; - CLIParserInit(&ctx, "lf em 4x10 write", + CLIParserInit(&ctx, "lf em 4x70 write", "Write EM4x70\n", - "lf em 4x70 write -b 15 d c0de -> write 'c0de' to block 15\n" - "lf em 4x70 write -x -b 15 -d c0de -> adds parity bit to commands\n" + "lf em 4x70 write -b 15 -d c0de -> write 'c0de' to block 15\n" + "lf em 4x70 write -b 15 -d c0de --par -> adds parity bit to commands\n" ); void *argtable[] = { arg_param_begin, - arg_lit0("x", "parity", "Add parity bit when sending commands"), - arg_int1("b", "block", "", "block/word address, dec"), - arg_str1("d", "data", "", "data, 2 bytes"), + arg_lit0(NULL, "par", "Add parity bit when sending commands"), + arg_int1("b", "block", "", "block/word address, dec"), + arg_str1("d", "data", "", "data, 2 bytes"), arg_param_end }; @@ -188,19 +188,19 @@ int CmdEM4x70Unlock(const char *Cmd) { CLIParserContext *ctx; - CLIParserInit(&ctx, "lf em 4x10 unlock", + CLIParserInit(&ctx, "lf em 4x70 unlock", "Unlock EM4x70 by sending PIN\n" "Default pin may be:\n" " AAAAAAAA\n" " 00000000\n", "lf em 4x70 unlock -p 11223344 -> Unlock with PIN\n" - "lf em 4x70 unlock -x -p 11223344 -> Unlock with PIN using parity commands\n" + "lf em 4x70 unlock -p 11223344 --par -> Unlock with PIN using parity commands\n" ); void *argtable[] = { arg_param_begin, - arg_lit0("x", "parity", "Add parity bit when sending commands"), - arg_str1("p", "pin", "", "pin, 4 bytes"), + arg_lit0(NULL, "par", "Add parity bit when sending commands"), + arg_str1("p", "pin", "", "pin, 4 bytes"), arg_param_end };