diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-03 00:17:05 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-03 00:17:05 -0800 |
commit | 15cfc3dcd9194fcca7715049eb1f49be2aa6d92f (patch) | |
tree | 6f04e4b871163ca9195ebe86a27f09863e843148 /bdftopcf.c | |
parent | b73e3de2d8a192d64f22fd2f450741cba2b7ee18 (diff) |
Add -v flag to print version info
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'bdftopcf.c')
-rw-r--r-- | bdftopcf.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,6 +26,10 @@ from The Open Group. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include <X11/X.h> #include <X11/Xproto.h> #include <X11/fonts/fontmisc.h> @@ -129,6 +133,11 @@ main(int argc, char *argv[]) output_name = argv[0]; } break; + + case 'v': + printf("%s\n", PACKAGE_STRING); + exit(0); + default: goto usage; } |