From 44bb213a72019f341f2befcc44d56327d84571f3 Mon Sep 17 00:00:00 2001 From: josedpedroso Date: Thu, 5 Jul 2018 00:53:09 +0100 Subject: [PATCH] Improved --help. --- websockify/websocketproxy.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/websockify/websocketproxy.py b/websockify/websocketproxy.py index 6f0ba6a..b95f5a4 100644 --- a/websockify/websocketproxy.py +++ b/websockify/websocketproxy.py @@ -445,20 +445,20 @@ def websockify_init(): "directory containing configuration files of this form " "(DEPRECATED: use `--token-plugin TokenFile --token-source " " path/to/token/file` instead)") - parser.add_option("--token-plugin", default=None, metavar="PLUGIN", - help="use the given Python class to process tokens " - "into host:port pairs") + parser.add_option("--token-plugin", default=None, metavar="CLASS", + help="use a Python class, usually one from websockify.token_plugins, " + "such as TokenFile, to process tokens into host:port pairs") parser.add_option("--token-source", default=None, metavar="ARG", - help="an argument to be passed to the token plugin" + help="an argument to be passed to the token plugin " "on instantiation") - parser.add_option("--auth-plugin", default=None, metavar="PLUGIN", - help="use the given Python class to determine if " - "a connection is allowed") + parser.add_option("--auth-plugin", default=None, metavar="CLASS", + help="use a Python class, usually one from websockify.auth_plugins, " + "such as BasicHTTPAuth, to determine if a connection is allowed") parser.add_option("--auth-source", default=None, metavar="ARG", - help="an argument to be passed to the auth plugin" + help="an argument to be passed to the auth plugin " "on instantiation") - parser.add_option("--heartbeat", type=int, default=0, - help="send a ping to the client every HEARTBEAT seconds") + parser.add_option("--heartbeat", type=int, default=0, metavar="INTERVAL", + help="send a ping to the client every INTERVAL seconds") parser.add_option("--log-file", metavar="FILE", dest="log_file", help="File where logs will be saved")