|
16 | 16 | #include <malloc.h> |
17 | 17 | #include <string.h> |
18 | 18 |
|
| 19 | +#define TORRENTCHECK_VERSION "1.2" |
| 20 | + |
19 | 21 | #ifdef ICONV_IMPLEMENTATION |
20 | 22 | #include <iconv.h> |
21 | 23 | #endif |
@@ -532,16 +534,20 @@ int main(int argc,char* argv[]) |
532 | 534 |
|
533 | 535 | if (torrentFile == NULL) |
534 | 536 | { |
535 | | - printf("torrentcheck - catalog a .torrent file and optionally verify content hashes\n"); |
536 | | - printf("Usage: torrentcheck torrent-file [-p content-path] [-n] [-h] [-c] [-d]\n"); |
| 537 | + printf("TorrentCheck version %s\n", TORRENTCHECK_VERSION); |
| 538 | + printf("Catalog a .torrent file and optionally verify content hashes\n"); |
| 539 | + printf("Usage:\n"); |
| 540 | + printf("\ttorrentcheck torrent-file [-p content-path] [-e str] [-n] [-h] [-c] [-d]\n"); |
537 | 541 | printf("Options:\n"); |
538 | | - printf("\t-n suppresses progress count,\n"); |
539 | | - printf("\t-h shows all hash values,\n"); |
540 | | - printf("\t-c or -d uses comma or dot formatted byte counts.\n"); |
| 542 | + printf("\t-p content-path path of content data,\n"); |
| 543 | + printf("\t-e str encoding name (iconv),\n"); |
| 544 | + printf("\t-n suppresses progress count,\n"); |
| 545 | + printf("\t-h shows all hash values,\n"); |
| 546 | + printf("\t-c or -d uses comma or dot formatted byte counts.\n"); |
541 | 547 | printf("Returns 0 if successful, nonzero return code if errors found.\n"); |
542 | 548 | printf("\n"); |
543 | 549 | printf("Option:\n"); |
544 | | - printf("\t-sha1 [optional hash] acts as a simple SHA1 filter.\n"); |
| 550 | + printf("\t-sha1 [optional hash] acts as a simple SHA1 filter.\n"); |
545 | 551 | printf("If -sha1 is followed by a hex hash, the return code will be zero\n"); |
546 | 552 | printf("on match and nonzero otherwise.\n"); |
547 | 553 | printf("\n"); |
|
0 commit comments