[\-display \fIdisplayname\fP]
[\-queryExtensions]
[\-ext \fIextension-name\fP]
+[-version]
.SH DESCRIPTION
.PP
.I Xdpyinfo
\fB\-ext\fP \fIextensionName\fP option. If \fIextensionName\fP is
\fBall\fP, information about all extensions supported by both \fIxdpyinfo\fP
and the server is displayed.
+.PP
+If \fB-version\fP is specified, xdpyinfo prints its version and exits, without
+contacting the X server.
.SH ENVIRONMENT
.PP
.TP 8
{
fprintf (stderr, "usage: %s [options]\n%s", ProgramName,
"-display displayname\tserver to query\n"
+ "-version\t\tprint program version and exit\n"
"-queryExtensions\tprint info returned by XQueryExtension\n"
"-ext all\t\tprint detailed info for all supported extensions\n"
"-ext extension-name\tprint detailed info for extension-name if one of:\n ");
} else if (!strncmp("-ext", arg, len)) {
if (++i >= argc) usage ();
mark_extension_for_printing(argv[i]);
+ } else if (!strncmp("-version", arg, len)) {
+ printf("%s\n", PACKAGE_STRING);
+ exit (0);
} else
usage ();
}