summary refs log tree commit diff
path: root/synapse/config/database.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-15 13:15:34 +0100
committerErik Johnston <erik@matrix.org>2019-07-15 14:09:33 +0100
commit823e13ddf49b28eb0dab5d7be3921acc92fd0e44 (patch)
tree0b3797ff105409b57ed524ac8e73886c06dbe2a6 /synapse/config/database.py
parentNewsfile (diff)
downloadsynapse-823e13ddf49b28eb0dab5d7be3921acc92fd0e44.tar.xz
Change add_arguments to be a static method
Diffstat (limited to 'synapse/config/database.py')
-rw-r--r--synapse/config/database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/config/database.py b/synapse/config/database.py
index bcb2089dd7..746a6cd1f4 100644
--- a/synapse/config/database.py
+++ b/synapse/config/database.py
@@ -69,7 +69,8 @@ class DatabaseConfig(Config):
             if database_path is not None:
                 self.database_config["args"]["database"] = database_path
 
-    def add_arguments(self, parser):
+    @staticmethod
+    def add_arguments(parser):
         db_group = parser.add_argument_group("database")
         db_group.add_argument(
             "-d",