diff --git a/src/anticol.c b/src/anticol.c index 21031e5..cf9a33e 100644 --- a/src/anticol.c +++ b/src/anticol.c @@ -96,7 +96,7 @@ bool transmit_bytes(const byte_t* pbtTx, const size_t szTxLen) void print_usage(void) { - printf("Usage: nfc-anticol [OPTIONS]\n"); + printf("Usage: %s [OPTIONS]\n", argv[0]); printf("Options:\n"); printf("\t-h\tHelp. Print this message.\n"); printf("\t-q\tQuiet mode. Suppress output of READER and EMULATOR data (improves timing).\n"); diff --git a/src/emulate.c b/src/emulate.c index 08ff640..40d9fc6 100644 --- a/src/emulate.c +++ b/src/emulate.c @@ -38,7 +38,7 @@ byte_t abtSak [9] = { 0x08,0xb6,0xdd }; void print_usage(void) { - printf("Usage: nfc-emulate [OPTIONS] [UID]\n"); + printf("Usage: %s [OPTIONS] [UID]\n", argv[0]); printf("Options:\n"); printf("\t-h\tHelp. Print this message.\n"); printf("\t-q\tQuiet mode. Suppress output of READER and EMULATOR data (improves timing).\n"); diff --git a/src/mftool.c b/src/mftool.c index a67f8b7..ae34dcf 100644 --- a/src/mftool.c +++ b/src/mftool.c @@ -280,12 +280,12 @@ int main(int argc, const char* argv[]) if (argc < 4) { printf("\n"); - printf("mftool []\n"); + printf("%s r|w a|b []\n", argv[0]); printf("\n"); - printf(" - Perform (read from) or (write to) card\n"); - printf(" - Use A or B keys to for action\n"); - printf(" - Used to write (card to file) or (file to card)\n"); - printf(" - Mifare-dump that contain the keys (optional)\n"); + printf("r|w - Perform read from (r) or write to (w) card\n"); + printf("a|b - Use A or B keys for action\n"); + printf(" - MiFare Dump (MFD) used to write (card to MFD) or (MFD to card)\n"); + printf(" - MiFare Dump (MFD) that contain the keys (optional)\n"); printf("\n"); return 1; } @@ -420,4 +420,4 @@ int main(int argc, const char* argv[]) return 0; } - \ No newline at end of file + diff --git a/src/mfultool.c b/src/mfultool.c index 856b3f5..d3850cc 100644 --- a/src/mfultool.c +++ b/src/mfultool.c @@ -108,10 +108,10 @@ int main(int argc, const char* argv[]) if (argc < 3) { printf("\n"); - printf("mfultool \n"); + printf("%s r|w \n", argv[0]); printf("\n"); - printf(" - Perform (read from) or (write to) card\n"); - printf(" - Used to write (card to file) or (file to card)\n"); + printf("r|w - Perform read from or write to card\n"); + printf(" - MiFare Dump (MFD) used to write (card to MFD) or (MFD to card)\n"); printf("\n"); return 1; } diff --git a/src/relay.c b/src/relay.c index d9fd3c7..457066e 100644 --- a/src/relay.c +++ b/src/relay.c @@ -37,7 +37,7 @@ static dev_info* pdiTag; void print_usage(void) { - printf("Usage: nfc-anticol [OPTIONS]\n"); + printf("Usage: %s [OPTIONS]\n", argv[0]); printf("Options:\n"); printf("\t-h\tHelp. Print this message.\n"); printf("\t-q\tQuiet mode. Suppress output of READER and EMULATOR data (improves timing).\n");