mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 02:53:46 +00:00
Merge pull request #610 from iceman1001/master
chg: make version printing obey verbose flag
This commit is contained in:
@@ -97,10 +97,6 @@ main(int argc, const char *argv[])
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display libnfc version
|
|
||||||
acLibnfcVersion = nfc_version();
|
|
||||||
printf("%s uses libnfc %s\n", argv[0], acLibnfcVersion);
|
|
||||||
|
|
||||||
// Get commandline options
|
// Get commandline options
|
||||||
for (arg = 1; arg < argc; arg++) {
|
for (arg = 1; arg < argc; arg++) {
|
||||||
if (0 == strcmp(argv[arg], "-h")) {
|
if (0 == strcmp(argv[arg], "-h")) {
|
||||||
@@ -126,6 +122,13 @@ main(int argc, const char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display libnfc version
|
||||||
|
if (verbose) {
|
||||||
|
acLibnfcVersion = nfc_version();
|
||||||
|
printf("%s uses libnfc %s\n", argv[0], acLibnfcVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Lazy way to open an NFC device */
|
/* Lazy way to open an NFC device */
|
||||||
#if 0
|
#if 0
|
||||||
pnd = nfc_open(context, NULL);
|
pnd = nfc_open(context, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user