changeset 17:184ab1da1307

Extend help messages
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 04 Dec 2020 23:06:48 +0100
parents 16958e1347b5
children 285848db0b52
files shasum.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/shasum.py	Fri Dec 04 17:42:15 2020 +0100
+++ b/shasum.py	Fri Dec 04 23:06:48 2020 +0100
@@ -40,10 +40,16 @@
         help="read in binary mode (default)")
     aparser.add_argument(
         "--bsd", "-B", action="store_true", dest="bsd", default=False,
-        help="write BSD style output; also :command:`openssl dgst` style")
+        help="Write BSD style output. This is also the default output format of :command:`openssl dgst`.")
     aparser.add_argument(
         "--check", "-c", action="store_true",
-        help="read digests from FILEs and check them")
+        help="""Read digests from FILEs and check them.
+If this option is specified, the FILE options become checklists. Each
+checklist should contain hash results in a supported format, which will
+be verified against the specified paths. Output consists of the digest
+used, the file name, and an OK, FAILED, or MISSING for the result of
+the comparison. This will validate any of the supported checksums.
+If no file is given, stdin is used.""")
     aparser.add_argument(
         "--reverse", "-r", action="store_false", dest="bsd", default=False,
         help="explicitely select normal coreutils style output (to be option compatible with BSD style commands and :command:`openssl dgst -r`)")