cfg.py: perform incompatible opts check for user opts only

This commit is contained in:
The MMGen Project 2026-08-05 17:24:51 +00:00
commit 5383c4b367
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -780,7 +780,8 @@ class Config(Lockable):
def _die_on_incompatible_opts(self):
for group in self._incompatible_opts:
bad = [k for k in self.__dict__ if k in group and getattr(self, k) is not None]
bad = [k for k in self.__dict__
if k in group and k in self._uopts and getattr(self, k) is not None]
if len(bad) > 1:
die(1, 'Conflicting options: {}'.format(', '.join(map(fmt_opt, bad))))