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

@ -103,7 +103,8 @@ class LoggingConfig(Config):
if args.log_file is not None:
self.log_file = args.log_file
def add_arguments(cls, parser):
@staticmethod
def add_arguments(parser):
logging_group = parser.add_argument_group("logging")
logging_group.add_argument(
"-v",