diff options
author | B. Watson <urchlay@slackware.uk> | 2024-05-31 15:37:00 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-05-31 15:37:00 -0400 |
commit | 434248ed2110460688b6c409fe5ec97677b646c7 (patch) | |
tree | ae186f673076aee63f58ecf52f140396a72a47de | |
parent | df46a51f2ed7deb5cbd01d3a2d1336332aac3dfa (diff) | |
download | bw-atari8-tools-434248ed2110460688b6c409fe5ec97677b646c7.tar.gz |
unprotbas: do not allow -r/-w with -c.
-rw-r--r-- | unprotbas.c | 1 |
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."); |