diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -22,2 +22,3 @@ #include <parser.h> +#include <version-etc.h> @@ -749,2 +750,15 @@ init() +const char version_etc_copyright[] = + /* Do *not* mark this string for translation. %s is a copyright + symbol suitable for this locale, and %d is the copyright + year. */ + "Copyright %s 2005, 2006, %d Sergey Poznyakoff"; + +static void +cflow_version(FILE *stream, struct argp_state *state) +{ + version_etc(stream, "cflow", PACKAGE_NAME, PACKAGE_VERSION, + "Sergey Poznyakoff", NULL); +} + int @@ -755,2 +769,3 @@ main(int argc, char **argv) program_name = argv[0]; /* Until gnulib provides a better way */ + argp_program_version_hook = cflow_version; |