diff options
-rw-r--r-- | man/xprop.man | 5 | ||||
-rw-r--r-- | xprop.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/man/xprop.man b/man/xprop.man index 81dc021..245cf9a 100644 --- a/man/xprop.man +++ b/man/xprop.man @@ -36,6 +36,7 @@ xprop - property displayer for X [-remove \fIproperty-name\fP] [-set \fIproperty-name\fP \fIvalue\fP] [-spy] +[-version] [-f \fIatom\fP \fIformat\fP [\fIdformat\fP]]* [\fIformat\fP [\fIdformat\fP] \fIatom\fP]* .SH SUMMARY @@ -121,6 +122,10 @@ indicated window. Examine window properties forever, looking for property change events. .PP .TP 8 +.B "-verson" +Print program version information and exit. +.PP +.TP 8 .B "-f \fIname\fP \fIformat\fP [\fIdformat\fP]" Specifies that the \fIformat\fP for \fIname\fP should be \fIformat\fP and that the \fIdformat\fP for \fIname\fP should be \fIdformat\fP. If \fIdformat\fP @@ -1785,7 +1785,8 @@ usage (const char *errmsg) " -fs filename where to look for formats for properties\n" " -frame don't ignore window manager frames\n" " -f propname format [dformat] formats to use for property of given name\n" -" -spy examine window properties forever\n"; +" -spy examine window properties forever\n" +" -version print program version\n"; fflush (stdout); @@ -1970,6 +1971,10 @@ main (int argc, char **argv) Parse_Format_Mapping(&argc, &argv); continue; } + if (!strcmp(argv[0], "-version")) { + puts(PACKAGE_STRING); + exit(0); + } fprintf (stderr, "%s: unrecognized argument %s\n\n", program_name, argv[0]); usage(NULL); |