X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/f415b094c750fb9f7cbfda0311bc5ba2024f385b..268cd12f990b95d82d00e639288563c6c6ce9452:/src/main.c diff --git a/src/main.c b/src/main.c index 60c128a..b0e7505 100644 --- a/src/main.c +++ b/src/main.c @@ -4520,6 +4520,18 @@ generate_outfiles(void) print_header_postfixes(); } +static void print_version(void) +{ + printf("%s (%s) %s\n", PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION); + putchar('\n'); + puts("Copyright (C) 2013 George (Jiri) Lebl et al."); + puts("Copyright (C) 2020 Nick Bowler"); + puts("License GPLv2+: GNU GPL version 2 or later ."); + puts("This is free software: you are free to change and redistribute it."); + puts("There is NO WARRANTY, to the extent permitted by law."); + +} + static void print_usage(FILE *f) { fprintf(f, "Usage: %s [options] file.gob\n", g_get_prgname()); @@ -4644,7 +4656,7 @@ parse_options(int argc, char *argv[]) print_help(); exit(0); } else if(strcmp(argv[i], "--version")==0) { - fprintf(stderr, "Gob version %s\n", VERSION); + print_version(); exit(0); } else if(strcmp(argv[i], "--exit-on-warn")==0) { exit_on_warn = TRUE;