Change add_arguments to be a static method

This commit is contained in:
Erik Johnston 2019-07-15 13:15:34 +01:00
parent 10fe904d88
commit 823e13ddf4
5 changed files with 39 additions and 5 deletions

View file

@ -222,7 +222,8 @@ class RegistrationConfig(Config):
% locals()
)
def add_arguments(self, parser):
@staticmethod
def add_arguments(parser):
reg_group = parser.add_argument_group("registration")
reg_group.add_argument(
"--enable-registration",