Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/genpwd.py @ 253:4314ee20927a
genpwd: more consistency with regard to help messages
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 08 Feb 2025 15:09:32 +0100 |
| parents | 0a2a162c5ad7 |
| children | 655f9e4bc6f2 |
comparison
equal
deleted
inserted
replaced
| 252:0a2a162c5ad7 | 253:4314ee20927a |
|---|---|
| 64 aparser = argparse.ArgumentParser( | 64 aparser = argparse.ArgumentParser( |
| 65 description="A simple password generator for passwords with a given" | 65 description="A simple password generator for passwords with a given" |
| 66 " length within a selected character repertoire", | 66 " length within a selected character repertoire", |
| 67 fromfile_prefix_chars='@') | 67 fromfile_prefix_chars='@') |
| 68 aparser.add_argument( | 68 aparser.add_argument( |
| 69 "--version", "-v", action="version", | 69 "-v", "--version", action="version", |
| 70 version="%s (rv:%s)" % (__version__, __revision__)) | 70 version="%s (rv:%s)" % (__version__, __revision__)) |
| 71 group = aparser.add_mutually_exclusive_group() | 71 group = aparser.add_mutually_exclusive_group() |
| 72 group.add_argument( | 72 group.add_argument( |
| 73 "--algorithm", "-a", | 73 "--algorithm", "-a", |
| 74 choices=("web", "safe-web", "safe-web-2", | 74 choices=("web", "safe-web", "safe-web-2", |
