summaryrefslogtreecommitdiff
path: root/fslsfonts.c
diff options
context:
space:
mode:
Diffstat (limited to 'fslsfonts.c')
-rw-r--r--fslsfonts.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fslsfonts.c b/fslsfonts.c
index 6ff6a2d..9de741e 100644
--- a/fslsfonts.c
+++ b/fslsfonts.c
@@ -43,6 +43,10 @@ in this Software without prior written authorization from The Open Group.
* THIS SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/fonts/FSlib.h>
#include <stdio.h>
#include <X11/Xos.h>
@@ -101,6 +105,7 @@ usage(void)
" -w width maximum width for multiple columns\n"
" -n columns number of columns if multi column\n"
" -server servername font server to contact\n"
+ " -version print command version and exit\n"
"\n");
exit(1);
}
@@ -120,6 +125,10 @@ main(int argc, char *argv[])
usage();
servername = argv[i];
}
+ else if (strcmp(argv[i], "-version") == 0) {
+ printf("%s\n", PACKAGE_STRING);
+ exit(0);
+ }
}
if ((svr = FSOpenServer(servername)) == NULL) {