Revision cf328b06 vncauthproxy/client.py
b/vncauthproxy/client.py | ||
---|---|---|
41 | 41 |
parser.add_option("--server", dest="server_address", |
42 | 42 |
default=DEFAULT_SERVER_ADDRESS, |
43 | 43 |
metavar="SERVER", |
44 |
help=("vncauthproxy server")) |
|
44 |
help=("vncauthproxy server address"))
|
|
45 | 45 |
parser.add_option("--server-port", dest="server_port", |
46 | 46 |
default=DEFAULT_SERVER_PORT, type="int", |
47 | 47 |
metavar="SERVER_PORT", |
... | ... | |
68 | 68 |
(opts, args) = parser.parse_args(args) |
69 | 69 |
|
70 | 70 |
# Mandatory arguments |
71 |
if not opts.server_address: |
|
72 |
parser.error("The --server argument is mandatory.") |
|
73 | 71 |
if not opts.password: |
74 | 72 |
parser.error("The -P/--password argument is mandatory.") |
75 | 73 |
if not opts.daddr: |
Also available in: Unified diff