comparison cutils/shasum.py @ 120:a548783381b6

More accurate description of --algorithm. While their: alias "3" to "3-512" (sha3-512).
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 29 Dec 2024 18:46:23 +0100
parents dd4fe912d7e9
children 1e5127028254
comparison
equal deleted inserted replaced
119:dd4fe912d7e9 120:a548783381b6
36 aparser = argparse.ArgumentParser( 36 aparser = argparse.ArgumentParser(
37 description="Python implementation of shasum", 37 description="Python implementation of shasum",
38 fromfile_prefix_chars='@') 38 fromfile_prefix_chars='@')
39 aparser.add_argument( 39 aparser.add_argument(
40 "--algorithm", "-a", action="store", type=util.argv2algo, 40 "--algorithm", "-a", action="store", type=util.argv2algo,
41 help="1 (default), 224, 256, 384, 512, 3-224, 3-256, 3-384, 3-512, blake2b, blake2s, blake2, blake2-256, md5") 41 help="1 (default, aka sha1), 224, 256, 384, 512, 3 (alias for sha3-512), 3-224, 3-256, 3-384, 3-512, blake2b, blake2b-256, blake2s, blake2 (alias for blake2b), blake2-256 (alias for blake2b-256), md5")
42 aparser.add_argument( 42 aparser.add_argument(
43 "--base64", action="store_true", 43 "--base64", action="store_true",
44 help="Output checksums in base64 notation, not hexadecimal (OpenBSD).") 44 help="Output checksums in base64 notation, not hexadecimal (OpenBSD).")
45 aparser.add_argument( 45 aparser.add_argument(
46 "--binary", "-b", action="store_false", dest="text_mode", default=False, 46 "--binary", "-b", action="store_false", dest="text_mode", default=False,