aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-31 15:37:00 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-31 15:37:00 -0400
commit434248ed2110460688b6c409fe5ec97677b646c7 (patch)
treeae186f673076aee63f58ecf52f140396a72a47de
parentdf46a51f2ed7deb5cbd01d3a2d1336332aac3dfa (diff)
downloadbw-atari8-tools-434248ed2110460688b6c409fe5ec97677b646c7.tar.gz
unprotbas: do not allow -r/-w with -c.
-rw-r--r--unprotbas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unprotbas.c b/unprotbas.c
index 2113fa1..2961f1c 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -823,6 +823,7 @@ void parse_args(int argc, char **argv) {
if(keepvars && forcevars) die("-f and -n are mutually exclusive.");
if(readmap && writemap) die("-r and -w are mutually exclusive.");
if(readmap && keepvars) die("-r and -n are mutually exclusive, maybe you want -w?");
+ if(checkonly && (readmap || writemap)) die("-c and -r/-w are mutually exclusive.");
if(protect_code || protect_vars) {
if(checkonly || keepvars || forcevars || readmap || writemap || !keepgarbage)
die("-p, -pc, -pv options can only be combined with -v, -x, -s.");