diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -21,4 +21,5 @@ #include <stdarg.h> #include <parser.h> +#include <version-etc.h> const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; @@ -748,4 +749,17 @@ 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 main(int argc, char **argv) @@ -754,4 +768,5 @@ main(int argc, char **argv) program_name = argv[0]; /* Until gnulib provides a better way */ + argp_program_version_hook = cflow_version; setlocale(LC_ALL, ""); |