comparison shasum.py @ 69:a23371a8780f

Writing style: Begin all help messages with an uppercase letter
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 26 Feb 2022 17:31:40 +0100
parents 4c2da9c74d7c
children 7844f5136214
comparison
equal deleted inserted replaced
68:4c2da9c74d7c 69:a23371a8780f
63 aparser.add_argument( 63 aparser.add_argument(
64 "--algorithm", "-a", action="store", type=argv2algo, 64 "--algorithm", "-a", action="store", type=argv2algo,
65 help="1 (default), 224, 256, 384, 512, 3-224, 3-256, 3-384, 3-512, blake2b, blake2s, md5") 65 help="1 (default), 224, 256, 384, 512, 3-224, 3-256, 3-384, 3-512, blake2b, blake2s, md5")
66 aparser.add_argument( 66 aparser.add_argument(
67 "--base64", action="store_true", 67 "--base64", action="store_true",
68 help="output checksums in base64 notation, not hexadecimal (OpenBSD).") 68 help="Output checksums in base64 notation, not hexadecimal (OpenBSD).")
69 aparser.add_argument( 69 aparser.add_argument(
70 "--binary", "-b", action="store_false", dest="text_mode", default=False, 70 "--binary", "-b", action="store_false", dest="text_mode", default=False,
71 help="read in binary mode (default)") 71 help="Read in binary mode (default)")
72 aparser.add_argument( 72 aparser.add_argument(
73 "--bsd", "-B", action="store_true", dest="bsd", default=False, 73 "--bsd", "-B", action="store_true", dest="bsd", default=False,
74 help="Write BSD style output. This is also the default output format of :command:`openssl dgst`.") 74 help="Write BSD style output. This is also the default output format of :command:`openssl dgst`.")
75 aparser.add_argument( 75 aparser.add_argument(
76 "--check", "-c", action="store_true", 76 "--check", "-c", action="store_true",
87 the CHECKLIST. Any specified FILE that is not listed in the CHECKLIST will 87 the CHECKLIST. Any specified FILE that is not listed in the CHECKLIST will
88 generate an error.""") 88 generate an error.""")
89 89
90 aparser.add_argument( 90 aparser.add_argument(
91 "--reverse", "-r", action="store_false", dest="bsd", default=False, 91 "--reverse", "-r", action="store_false", dest="bsd", default=False,
92 help="explicitely select normal coreutils style output (to be option compatible with BSD style commands and :command:`openssl dgst -r`)") 92 help="Explicitely select normal coreutils style output (to be option compatible with BSD style commands and :command:`openssl dgst -r`)")
93 aparser.add_argument( 93 aparser.add_argument(
94 "--tag", action="store_true", dest="bsd", default=False, 94 "--tag", action="store_true", dest="bsd", default=False,
95 help="alias for the `--bsd' option (to be compatible with :command:`b2sum`)") 95 help="Alias for the `--bsd' option (to be compatible with :command:`b2sum`)")
96 aparser.add_argument( 96 aparser.add_argument(
97 "--text", "-t", action="store_true", dest="text_mode", default=False, 97 "--text", "-t", action="store_true", dest="text_mode", default=False,
98 help="read in text mode (not supported)") 98 help="Read in text mode (not supported)")
99 aparser.add_argument( 99 aparser.add_argument(
100 "--version", "-v", action="version", version="%s (rv:%s)" % (__version__, __revision__)) 100 "--version", "-v", action="version", version="%s (rv:%s)" % (__version__, __revision__))
101 aparser.add_argument( 101 aparser.add_argument(
102 "files", nargs="*", metavar="FILE") 102 "files", nargs="*", metavar="FILE")
103 103