Skip to content

Commit

Permalink
fix error in help text
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Nov 12, 2022
1 parent fb16ab1 commit 3945bcf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ChangeLog for sha256

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

Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ via command line/ shell. A list of valid options follows below.
### Options + parameters

--sha1
Calculate SHA-1 (160bit) checksums instead of SHA-256.
Calculate SHA-1 (160 bit) checksums instead of SHA-256.

--sha224
Calculate SHA-224 (224bit) checksums instead of SHA-256.
Calculate SHA-224 (224 bit) checksums instead of SHA-256.

--sha256
Calculate SHA-256 (256bit) checksums. This is the default.
Calculate SHA-256 (256 bit) checksums. This is the default.

--sha384
Calculate SHA-384 (384bit) checksums instead of SHA-384.
Calculate SHA-384 (384 bit) checksums instead of SHA-256.

--sha512
Calculate SHA-512 (512bit) checksums instead of SHA-256.
Calculate SHA-512 (512 bit) checksums instead of SHA-256.

--help
Show a help message and list valid program options.
Expand Down
6 changes: 3 additions & 3 deletions sha256/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------------------
This file is part of the SHA-256 hash calculator.
Copyright (C) 2012, 2015, 2016 Dirk Stolle
Copyright (C) 2012, 2015, 2016, 2022 Dirk Stolle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -44,7 +44,7 @@ const int rcInvalidParameter = 1;
void showGPLNotice()
{
std::cout << "SHA-256 file hash calculator\n"
<< " Copyright (C) 2012, 2015 Dirk Stolle\n"
<< " Copyright (C) 2012, 2015, 2022 Dirk Stolle\n"
<< "\n"
<< " This program is free software: you can redistribute it and/or\n"
<< " modify it under the terms of the GNU General Public License as published\n"
Expand Down Expand Up @@ -82,7 +82,7 @@ void showHelp()
<< " --sha224 - use SHA-224 instead of SHA-256 to hash files.\n"
<< " --sha256 - use SHA-256 to hash files. This option is active by\n"
<< " default.\n"
<< " --sha384 - use SHA-384 instead of SHA-384 to hash files.\n"
<< " --sha384 - use SHA-384 instead of SHA-256 to hash files.\n"
<< " --sha512 - use SHA-512 instead of SHA-256 to hash files.\n";
}

Expand Down

0 comments on commit 3945bcf

Please sign in to comment.