diff 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
line wrap: on
line diff
--- a/cutils/genpwd.py	Sat Feb 08 09:41:44 2025 +0100
+++ b/cutils/genpwd.py	Sat Feb 08 09:47:34 2025 +0100
@@ -54,7 +54,12 @@
                  "bin-base64", "bin-urlsafe-base64", "bin-base32",
                  "bin-ascii85", "bin-hex", ),
         default="web-safe2",
-        help="Select the character repertoire. Default: web-safe2")
+        help="""
+Select from a character repertoire.
+All repertoires that start with "bin-" just encode the output of
+"os.urandom()" with the selected encoder.
+Default: web-safe2
+""")
     aparser.add_argument(
         "req_length", metavar="OUTPUT-LENGTH", type=int,
         help="The required length of the generated output")