mirror of https://github.com/YosysHQ/yosys.git
Give error that options are exclusive
This commit is contained in:
parent
0545a042f3
commit
405b4e97a1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue