From d96ecf08595a839f63855029d6f37c1c1ccca119 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 22 Apr 2022 10:19:54 +0200 Subject: [PATCH] Add more alternatives to usage string If you use a token plugin, or a Unix socket target, then you should no longer specify a target on the command line. Add these to the usage string to make this clear. --- websockify/websocketproxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/websockify/websocketproxy.py b/websockify/websocketproxy.py index 035ba63..7260d2e 100644 --- a/websockify/websocketproxy.py +++ b/websockify/websocketproxy.py @@ -427,6 +427,10 @@ def websockify_init(): usage = "\n %prog [options]" usage += " [source_addr:]source_port [target_addr:target_port]" usage += "\n %prog [options]" + usage += " --token-plugin=CLASS [source_addr:]source_port" + usage += "\n %prog [options]" + usage += " --unix-target=FILE [source_addr:]source_port" + usage += "\n %prog [options]" usage += " [source_addr:]source_port -- WRAP_COMMAND_LINE" parser = optparse.OptionParser(usage=usage) parser.add_option("--verbose", "-v", action="store_true",