comparison cutils/genpwd.py @ 242:ae9bc3006efc

Enhanced help message: describe the "bin-" prefix
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 08 Feb 2025 09:47:34 +0100
parents d4501acb0a7c
children 86417af99561
comparison
equal deleted inserted replaced
241:d4501acb0a7c 242:ae9bc3006efc
52 "--repertoire", "--type", "-t", 52 "--repertoire", "--type", "-t",
53 choices=("web", "web-safe", "web-safe2", 53 choices=("web", "web-safe", "web-safe2",
54 "bin-base64", "bin-urlsafe-base64", "bin-base32", 54 "bin-base64", "bin-urlsafe-base64", "bin-base32",
55 "bin-ascii85", "bin-hex", ), 55 "bin-ascii85", "bin-hex", ),
56 default="web-safe2", 56 default="web-safe2",
57 help="Select the character repertoire. Default: web-safe2") 57 help="""
58 Select from a character repertoire.
59 All repertoires that start with "bin-" just encode the output of
60 "os.urandom()" with the selected encoder.
61 Default: web-safe2
62 """)
58 aparser.add_argument( 63 aparser.add_argument(
59 "req_length", metavar="OUTPUT-LENGTH", type=int, 64 "req_length", metavar="OUTPUT-LENGTH", type=int,
60 help="The required length of the generated output") 65 help="The required length of the generated output")
61 66
62 opts = aparser.parse_args(args=argv) 67 opts = aparser.parse_args(args=argv)