it seems that the -d command line flag for setting the display does nothing.
tested on commit 1882303
the following snippet would integrate it into the current parsing logic by overriding the explicit port declaration.
diff --git a/vncdotool/command.py b/vncdotool/command.py
index 7318d6a..446e6c9 100644
@@ -226,6 +226,9 @@ def parse_host(options):
options.port = 5900
+ if options.display:
+ options.port = options.display + 5900
You caught me! I was half way though doing away with -d all together and replacing it with the host:display and host::port syntax that other tools are using, eg vncdo -s somehost:49 rather than vncdo -s somehost -d 49. Is there a use case for -d that the host:display syntax doesn't cover?
hehe :) - i suspected that.
i just didn't know if you wanted both or just one method.
i would say the IP:PORT syntax is perfectly fine. but please bear in mind that everyone is used to IP:PORT. if you want to distinguish between IP:PORT/DISPLAY i would use IP:PORT and IP::DISPLAY.
I agree IP:PORT would make sense but most other VNC viewers are using the IP::PORT syntax. I've choose to be consistent with them.
command: remove -d relic of pre host:display interface, fixes #10