add choices

This commit is contained in:
Kevin Hester
2021-03-25 10:04:27 +08:00
parent df91d56483
commit 5e517e803a

View File

@@ -186,6 +186,7 @@ def setPref(attributes, name, valStr):
val = e.number
else:
print(f"{name} doesn't have an enum called {val}, so you can not set it.")
print(f"Choices are:")
for f in enumType.values:
print(f" {f.name}")
return