X-Git-Url: https://jxself.org/git/?p=skeinsum.git;a=blobdiff_plain;f=skein_cli.c;h=34c2a6ac77b38bdcfd634dafcd1173cb76e9bb7a;hp=4378da620f85a029f7f9f90f68d1591cd2a07dee;hb=aff2ef43197ec56ae8cef81325229925454e09c7;hpb=043c3bb487daea1b21c00443b8fd57bac9b20054 diff --git a/skein_cli.c b/skein_cli.c index 4378da6..34c2a6a 100644 --- a/skein_cli.c +++ b/skein_cli.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 2015 Jason Self +/* Copyright (C) 2014 2015 2019 Jason Self This file is part of skeinsum. @@ -377,7 +377,7 @@ void PrintStringHash(const char *s) void print_version(void) { - printf("skein%dsum 1.0\n", hashbitlen); + printf("skein%dsum %s\n", hashbitlen, VERSION); printf("License GPLv3+: GNU GPL version 3 or later\n"); printf("\n"); printf("This is free software: you are free to change and redistribute it.\n"); @@ -387,6 +387,7 @@ void print_version(void) void print_usage(void) { + printf("Usage: skein%dsum [OPTION]... [FILE]...\n",hashbitlen); printf("Print or check skein (%d-bit) checksums.\n",hashbitlen); printf("With no FILE, or when FILE is -, read standard input.\n" @@ -406,11 +407,13 @@ void print_usage(void) "-h, --help display this help and exit\n" "-V, --version output version information and exit\n" "\n" - "The sums are computed as described in version 1.3 of the Skein\n" + "The sums are computed as described in version %s of the Skein\n" "specification. When checking, the input should be a former output of\n" "this program. The default mode is to print a line with checksum, a\n" "character indicating input mode ('*' for binary, space for text), and\n" - "name for each FILE.\n"); + "name for each FILE.\n", skeinVersion); + printf("%s home page: %s\n", PACKAGE_NAME, PACKAGE_URL); + printf("Report bugs to: %s\n", PACKAGE_BUGREPORT); exit(1); }