mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-09 14:52:04 +00:00
specify metavars in argparse
This commit is contained in:
parent
118b250473
commit
61e28cdb6f
@ -39,7 +39,7 @@ class ServerConfig(Config):
|
|||||||
help="The name of the server")
|
help="The name of the server")
|
||||||
server_group.add_argument("--signing-key-path",
|
server_group.add_argument("--signing-key-path",
|
||||||
help="The signing key to sign messages with")
|
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")
|
help="TCP port to listen on")
|
||||||
server_group.add_argument("--bind-host", default="",
|
server_group.add_argument("--bind-host", default="",
|
||||||
help="Local interface to listen on")
|
help="Local interface to listen on")
|
||||||
@ -51,7 +51,8 @@ class ServerConfig(Config):
|
|||||||
server_group.add_argument("-W", "--no-webclient", default=True,
|
server_group.add_argument("-W", "--no-webclient", default=True,
|
||||||
action="store_false",
|
action="store_false",
|
||||||
help="Don't host a web client.")
|
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"
|
help="Turn on the twisted telnet manhole"
|
||||||
" service on the given port.")
|
" service on the given port.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user