diff options
Diffstat (limited to 'xdriinfo.c')
-rw-r--r-- | xdriinfo.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -22,6 +22,10 @@ * */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #define GLX_GLXEXT_PROTOTYPES #include <GL/glx.h> #include <GL/glxext.h> @@ -44,7 +48,7 @@ void printUsage (void); void printUsage (void) { fprintf (stderr, -"Usage: xdriinfo [-display <dpy>] [command]\n" +"Usage: xdriinfo [-display <dpy>] [-version] [command]\n" "Commands:\n" " nscreens print the number of screens on display\n" " driver screen print the DRI driver name of screen\n" @@ -79,6 +83,9 @@ int main (int argc, char *argv[]) { } else if (!strcmp (argv[i], "options")) { func = OPTIONS; argPtr = &funcArg; + } else if (!strcmp (argv[i], "-version")) { + puts(PACKAGE_STRING); + return 0; } else { fprintf (stderr, "%s: unrecognized argument '%s'\n", argv[0], argv[i]); |