Options: sort values when displaying OptionSet (#326)

This commit is contained in:
Fabian Dill 2022-03-22 15:25:34 +01:00 committed by GitHub
parent 92319b0e31
commit cf2e37f92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ class OptionSet(Option, VerifyKeys):
return cls.from_text(str(data))
def get_option_name(self, value):
return ", ".join(value)
return ", ".join(sorted(value))
def __contains__(self, item):
return item in self.value