Core: have generation print plando settings as string instead of numbers (#843)
* have generation print plando settings as string instead of numbers * Change to __str__ * Make to_string not a class method * Suggested fix Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Fix the fix * Better quotes Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
parent
75165803a0
commit
3bc9392e5b
|
@ -61,6 +61,11 @@ class PlandoSettings(enum.IntFlag):
|
|||
else:
|
||||
return base | part
|
||||
|
||||
def __str__(self) -> str:
|
||||
if self.value:
|
||||
return ", ".join((flag.name for flag in PlandoSettings if self.value & flag.value))
|
||||
return "Off"
|
||||
|
||||
|
||||
def mystery_argparse():
|
||||
options = get_options()
|
||||
|
|
Loading…
Reference in New Issue