diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-09-28 15:31:14 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-09-28 15:31:14 +0200 |
commit | 2b69d385e669bf97d872fd116c7f1da5aee7cdfd (patch) | |
tree | 0e66831126e9ae21c17a9c7b34b22a15c83649df | |
parent | 20041a2924eb19470e1780c6c07ed594f3f9f614 (diff) | |
download | tigervnc-2b69d385e669bf97d872fd116c7f1da5aee7cdfd.tar.gz tigervnc-2b69d385e669bf97d872fd116c7f1da5aee7cdfd.zip |
Include unix socket in vncviewer usage
We've had support for unix sockets for a while now. Make sure this
is reflected in the -help output and the man page.
Also make some minor tweaks to the section to get everything in
sync with reality.
-rw-r--r-- | vncviewer/vncviewer.cxx | 15 | ||||
-rw-r--r-- | vncviewer/vncviewer.man | 6 |
2 files changed, 17 insertions, 4 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index f076565f..8d795109 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -348,10 +348,19 @@ static void usage(const char *programName) #endif fprintf(stderr, - "\nusage: %s [parameters] [host:displayNum] [parameters]\n" - " %s [parameters] -listen [port] [parameters]\n" + "\n" + "usage: %s [parameters] [host][:displayNum]\n" + " %s [parameters] [host][::port]\n" +#ifndef WIN32 + " %s [parameters] [unix socket]\n" +#endif + " %s [parameters] -listen [port]\n" " %s [parameters] [.tigervnc file]\n", - programName, programName, programName); + programName, programName, +#ifndef WIN32 + programName, +#endif + programName, programName); fprintf(stderr,"\n" "Parameters can be turned on with -<param> or off with -<param>=0\n" "Parameters which take a value can be specified as " diff --git a/vncviewer/vncviewer.man b/vncviewer/vncviewer.man index 729c01d6..421290f8 100644 --- a/vncviewer/vncviewer.man +++ b/vncviewer/vncviewer.man @@ -11,13 +11,17 @@ vncviewer \- VNC viewer for X .RI [ host ][:: port ] .br .B vncviewer +.RI [ options ] +.RI [ unix\ socket ] +.br +.B vncviewer .RI [ options ] .B \-listen .RI [ port ] .br .B vncviewer .RI [ options ] -.RI [ .tigervnc file ] +.RI [ .tigervnc\ file ] .SH DESCRIPTION .B vncviewer is a viewer (client) for Virtual Network Computing. This manual page documents |