Give error that options are exclusive

This commit is contained in:
Miodrag Milanovic 2020-06-29 14:45:49 +02:00
parent 0545a042f3
commit 405b4e97a1
1 changed files with 6 additions and 2 deletions

View File

@ -281,11 +281,15 @@ struct ExposePass : public Pass {
flag_dff = true;
continue;
}
if (args[argidx] == "-cut" && !flag_input) {
if (args[argidx] == "-cut") {
if (flag_input)
log_cmd_error("Options -cut and -input are mutually exclusive.\n");
flag_cut = true;
continue;
}
if (args[argidx] == "-input" && !flag_cut) {
if (args[argidx] == "-input") {
if (flag_cut)
log_cmd_error("Options -cut and -input are mutually exclusive.\n");
flag_input = true;
continue;
}