summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-01 22:11:08 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-01 22:11:08 +0100
commit61e28cdb6f3a921f42e6dbe10fa516df4a5a4f9f (patch)
tree4cdd103338ee80c14638e050aad1b620d7174699 /synapse/config/server.py
parentadd pyyaml dependency for config files (diff)
downloadsynapse-61e28cdb6f3a921f42e6dbe10fa516df4a5a4f9f.tar.xz
specify metavars in argparse
Diffstat (limited to '')
-rw-r--r--synapse/config/server.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 7e8ff6a703..2c80be71b3 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -39,7 +39,7 @@ class ServerConfig(Config):
                                   help="The name of the server")
         server_group.add_argument("--signing-key-path",
                                   help="The signing key to sign messages with")
-        server_group.add_argument("-p", "--bind-port", type=int,
+        server_group.add_argument("-p", "--bind-port", metavar="PORT", type=int,
                                   help="TCP port to listen on")
         server_group.add_argument("--bind-host", default="",
                                   help="Local interface to listen on")
@@ -51,7 +51,8 @@ class ServerConfig(Config):
         server_group.add_argument("-W", "--no-webclient", default=True,
                                   action="store_false",
                                   help="Don't host a web client.")
-        server_group.add_argument("--manhole", dest="manhole", type=int,
+        server_group.add_argument("--manhole", metavar="PORT", dest="manhole",
+                                  type=int,
                                   help="Turn on the twisted telnet manhole"
                                   " service on the given port.")