summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/ifdtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ifdtool.c b/tools/ifdtool.c
index 2c9bbda..a4b481f 100644
--- a/tools/ifdtool.c
+++ b/tools/ifdtool.c
@@ -924,7 +924,7 @@ int main(int argc, char *argv[])
if ((mode_dump + mode_extract + mode_inject + mode_spifreq +
mode_em100 + mode_locked + mode_unlocked + mode_write +
- mode_write_descriptor) == 0) {
+ mode_write_descriptor) == 0 && !create) {
fprintf(stderr, "You need to specify a mode.\n\n");
print_usage(argv[0]);
exit(EXIT_FAILURE);