Skip to content

Commit 3945bcf

Browse files
committed
fix error in help text
1 parent fb16ab1 commit 3945bcf

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ChangeLog for sha256
22

33
## Version NEXT (2022-11-??)
4+
- An error in the program's help text is fixed.
45
- The minimum required CMake version to build the program is raised to
56
CMake 3.8.
67

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ via command line/ shell. A list of valid options follows below.
2626
### Options + parameters
2727

2828
--sha1
29-
Calculate SHA-1 (160bit) checksums instead of SHA-256.
29+
Calculate SHA-1 (160 bit) checksums instead of SHA-256.
3030

3131
--sha224
32-
Calculate SHA-224 (224bit) checksums instead of SHA-256.
32+
Calculate SHA-224 (224 bit) checksums instead of SHA-256.
3333

3434
--sha256
35-
Calculate SHA-256 (256bit) checksums. This is the default.
35+
Calculate SHA-256 (256 bit) checksums. This is the default.
3636

3737
--sha384
38-
Calculate SHA-384 (384bit) checksums instead of SHA-384.
38+
Calculate SHA-384 (384 bit) checksums instead of SHA-256.
3939

4040
--sha512
41-
Calculate SHA-512 (512bit) checksums instead of SHA-256.
41+
Calculate SHA-512 (512 bit) checksums instead of SHA-256.
4242

4343
--help
4444
Show a help message and list valid program options.

sha256/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
-------------------------------------------------------------------------------
33
This file is part of the SHA-256 hash calculator.
4-
Copyright (C) 2012, 2015, 2016 Dirk Stolle
4+
Copyright (C) 2012, 2015, 2016, 2022 Dirk Stolle
55
66
This program is free software: you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by
@@ -44,7 +44,7 @@ const int rcInvalidParameter = 1;
4444
void showGPLNotice()
4545
{
4646
std::cout << "SHA-256 file hash calculator\n"
47-
<< " Copyright (C) 2012, 2015 Dirk Stolle\n"
47+
<< " Copyright (C) 2012, 2015, 2022 Dirk Stolle\n"
4848
<< "\n"
4949
<< " This program is free software: you can redistribute it and/or\n"
5050
<< " modify it under the terms of the GNU General Public License as published\n"
@@ -82,7 +82,7 @@ void showHelp()
8282
<< " --sha224 - use SHA-224 instead of SHA-256 to hash files.\n"
8383
<< " --sha256 - use SHA-256 to hash files. This option is active by\n"
8484
<< " default.\n"
85-
<< " --sha384 - use SHA-384 instead of SHA-384 to hash files.\n"
85+
<< " --sha384 - use SHA-384 instead of SHA-256 to hash files.\n"
8686
<< " --sha512 - use SHA-512 instead of SHA-256 to hash files.\n";
8787
}
8888

0 commit comments

Comments
 (0)