char* programName;
-static void usage()
+static void printVersion(FILE *fp)
{
- fprintf(stderr, "TightVNC Server version %s, built %s\n\n",
+ fprintf(fp, "TightVNC Server version %s, built %s\n",
- VERSION, buildtime);
+ PACKAGE_VERSION, buildtime);
- fprintf(stderr, "Usage: %s [<parameters>]\n", programName);
+}
+
+static void usage()
+{
+ printVersion(stderr);
+ fprintf(stderr, "\nUsage: %s [<parameters>]\n", programName);
+ fprintf(stderr, " %s --version\n", 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 "