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