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.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user