summary refs log tree commit diff
path: root/synapse/app/admin_cmd.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-15 13:43:25 +0100
committerErik Johnston <erik@matrix.org>2019-07-15 14:09:35 +0100
commitfdefb9e29a7c28e5b218fc8d9745a2ec58bc3d27 (patch)
tree897e196ec367fa598aee1521addffad431478c14 /synapse/app/admin_cmd.py
parentFix up comments (diff)
downloadsynapse-fdefb9e29a7c28e5b218fc8d9745a2ec58bc3d27.tar.xz
Move creation of ArgumentParser to caller
Diffstat (limited to 'synapse/app/admin_cmd.py')
-rw-r--r--synapse/app/admin_cmd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/admin_cmd.py b/synapse/app/admin_cmd.py
index e618a62432..c4d752593a 100644
--- a/synapse/app/admin_cmd.py
+++ b/synapse/app/admin_cmd.py
@@ -13,6 +13,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+import argparse
 import logging
 import sys
 
@@ -105,7 +106,8 @@ def export_data_command(hs, user_id, directory):
 
 
 def start(config_options):
-    parser = HomeServerConfig.create_argument_parser("Synapse Admin Command")
+    parser = argparse.ArgumentParser(description="Synapse Admin Command")
+    HomeServerConfig.add_arguments_to_parser(parser)
 
     subparser = parser.add_subparsers(
         title="Admin Commands",