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 | |
parent | b73e3de2d8a192d64f22fd2f450741cba2b7ee18 (diff) |
Add -v flag to print version info
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | bdftopcf.c | 9 | ||||
-rw-r--r-- | man/bdftopcf.man | 3 |
2 files changed, 12 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; } diff --git a/man/bdftopcf.man b/man/bdftopcf.man index cd8f8cc..c8c8f7a 100644 --- a/man/bdftopcf.man +++ b/man/bdftopcf.man @@ -106,6 +106,9 @@ By default .I bdftopcf writes the pcf file to standard output; this option gives the name of a file to be used instead. +.TP 8 +.B \-v +Print version information and exit. .SH "SEE ALSO" X(__miscmansuffix__) .SH AUTHOR |