aboutsummaryrefslogtreecommitdiff
path: root/unprotbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-24 04:24:55 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-24 04:25:34 -0400
commit71e28b9adcd5fbd74d9cf499e01078bf9d86d8a0 (patch)
tree4eceb696ed31981e7f9f104d09a241b3d94ad1f3 /unprotbas.c
parent79ba7b783def208893d13fe785e7d8bde76740a2 (diff)
downloadbw-atari8-tools-71e28b9adcd5fbd74d9cf499e01078bf9d86d8a0.tar.gz
unprotbas: stricter option checking.
Diffstat (limited to 'unprotbas.c')
-rw-r--r--unprotbas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unprotbas.c b/unprotbas.c
index a95e9a6..14fdc63 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -697,6 +697,10 @@ 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(protect_code || protect_vars) {
+ if(checkonly || keepvars || forcevars || readmap || writemap || !keepgarbage)
+ die("-p, -pc, -pv options can't be combined with other options except -v");
+ }
}
int main(int argc, char **argv) {