static int vncVerbose = DEFAULT_LOG_VERBOSITY;
+static void
+vncPrintBanner(void)
+{
+ ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT);
+ ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE,
+ VENDOR_STRING);
+}
+
static void
vfbInitializePixmapDepths(void)
{
void ddxUseMsg(void)
{
- ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT);
- ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE,
- VENDOR_STRING);
+ vncPrintBanner();
+
ErrorF("-screen scrn WxHxD set screen's width, height, depth\n");
ErrorF("-pixdepths list-of-int support given pixmap depths\n");
#ifdef RENDER
ErrorF("-noclipboard disable clipboard settings modification via vncconfig utility\n");
ErrorF("-verbose [n] verbose startup messages\n");
ErrorF("-quiet minimal startup messages\n");
+ ErrorF("-version show the server version\n");
ErrorF("\nVNC parameters:\n");
fprintf(stderr,"\n"
return 1;
}
+ if (!strcmp(argv[i], "-showconfig") || !strcmp(argv[i], "-version")) {
+ vncPrintBanner();
+ exit(0);
+ }
+
if (vncSetParamSimple(argv[i]))
return 1;
int i;
int NumFormats = 0;
- ErrorF("\nXvnc %s - built %s\n%s", XVNCVERSION, buildtime, XVNCCOPYRIGHT);
- ErrorF("Underlying X server release %d, %s\n\n", VENDOR_RELEASE,
- VENDOR_STRING);
+ vncPrintBanner();
#if XORG >= 113
#ifdef GLXEXT