diff options
-rw-r--r-- | misc-utils/flashcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/flashcp.c b/misc-utils/flashcp.c index f4acba5..2e8d4c1 100644 --- a/misc-utils/flashcp.c +++ b/misc-utils/flashcp.c @@ -282,6 +282,9 @@ int main (int argc,char *argv[]) if (flags & FLAG_HELP || device == NULL) showusage(flags != FLAG_HELP); + if (flags & FLAG_PARTITION && flags & FLAG_ERASE_ALL) + log_failure("Option --partition does not support --erase-all\n"); + atexit (cleanup); /* get some info about the flash device */ |