# HG changeset patch # User Franz Glasner # Date 1607119608 -3600 # Node ID 184ab1da13077cb22d619013b71fe42d837ae6f0 # Parent 16958e1347b55c2b90b176854ff0e74916bb5eec Extend help messages diff -r 16958e1347b5 -r 184ab1da1307 shasum.py --- 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`)")