More coherent conf. flags, Updated README, minor code improv.

This commit is contained in:
2022-08-29 17:50:14 +02:00
parent c546458073
commit a1e77b8f91
6 changed files with 90 additions and 59 deletions

View File

@ -37,8 +37,8 @@ def EvalOpt(Opt):
else:
return None
def OptionChoose(Default, Primary, Secondary):
return Primary if Primary != None else Secondary if Secondary != None else Default
def OptionChoose(Default, Primary, Secondary, Tertiary=None):
return Primary if Primary != None else Secondary if Secondary != None else Tertiary if Tertiary != None else Default
def StringBoolChoose(Default, Primary, Secondary):
Var = Default