summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-13 17:33:54 +0000
committerErik Johnston <erik@matrix.org>2019-03-13 17:33:54 +0000
commit72bfaf746d17505df01dfa68b23ee43eb9f54144 (patch)
tree864a9b7b488f279d3b604b75fe6ea291740494ff /synapse/config/_base.py
parentDocument using a certificate with a full chain (#4849) (diff)
downloadsynapse-72bfaf746d17505df01dfa68b23ee43eb9f54144.tar.xz
Allow passing --daemonize to workers
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index c4d3087fa4..5613f38e4d 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -214,14 +214,20 @@ class Config(object):
             " Defaults to the directory containing the last config file",
         )
 
+        obj = cls()
+
+        obj.invoke_all("add_arguments", config_parser)
+
         config_args = config_parser.parse_args(argv)
 
         config_files = find_config_files(search_paths=config_args.config_path)
 
-        obj = cls()
         obj.read_config_files(
             config_files, keys_directory=config_args.keys_directory, generate_keys=False
         )
+
+        obj.invoke_all("read_arguments", config_args)
+
         return obj
 
     @classmethod