diff options
-rw-r--r-- | man/xset.man | 7 | ||||
-rw-r--r-- | xset.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/man/xset.man b/man/xset.man index ff46e9f..e9f1c5e 100644 --- a/man/xset.man +++ b/man/xset.man @@ -64,6 +64,8 @@ xset - user preference utility for X [s {expose|noexpose}] [s {on|off}] [s default] [s activate] [s reset] .br [q] +.br +[-version] .SH DESCRIPTION This program is used to set various user preference options of the display. .SH OPTIONS @@ -282,6 +284,11 @@ If only one numerical parameter is given, it will be used for the length. .B q The \fBq\fP option gives you information on the current settings. .PP +.TP 8 +.B -version +The \fB-version\fP option prints the program version and exits without +doing anything else. +.PP These settings will be reset to default values when you log out. .PP Note that not all X implementations are guaranteed to honor all of these @@ -185,6 +185,9 @@ main(int argc, char *argv[]) if (++i >= argc) usage("missing argument to -display"); disp = argv[i]; + } else if (strcmp(arg, "-version") == 0) { + puts(PACKAGE_STRING); + exit(EXIT_SUCCESS); } else { hasargs = True; } @@ -1648,7 +1651,9 @@ usage(const char *fmt, ...) "\t s blank s noblank s off\n" "\t s expose s noexpose\n" "\t s activate s reset\n" - " For status information: q\n"); + " For status information: q\n" + " To print version: -version\n" + ); exit(EXIT_SUCCESS); } |