From: Daniel Carl Date: Wed, 24 Feb 2016 09:54:05 +0000 (+0100) Subject: Add license info to --version output. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=44d83e26e30a29f34549cbfb7364cfe054757f8c;p=vimb.git Add license info to --version output. --- diff --git a/src/main.c b/src/main.c index 3b379fc..5317404 100644 --- a/src/main.c +++ b/src/main.c @@ -1830,7 +1830,11 @@ int main(int argc, char *argv[]) } if (ver) { - fprintf(stdout, "%s/%s\n", PROJECT, VERSION); + fprintf(stdout, "%s, version %s\n", PROJECT, VERSION); + fprintf(stdout, "Copyright © 2012 - 2016 Daniel Carl \n"); + fprintf(stdout, "License GPLv3+: GNU GPL version 3 or later \n"); + fprintf(stdout, "This is free software; you are free to change and redistribute it.\n"); + fprintf(stdout, "There is NO WARRANTY, to the extent permitted by law.\n"); return EXIT_SUCCESS; }