From: Jakob Cornell Date: Wed, 18 Sep 2019 22:39:39 +0000 (-0500) Subject: Add comment X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;p=password-gen.git Add comment --- diff --git a/gen_pass.py b/gen_pass.py index d7fbb35..3d32e1d 100644 --- a/gen_pass.py +++ b/gen_pass.py @@ -5,8 +5,10 @@ import sys import contextlib import random -ap = argparse.ArgumentParser(description = "Generate a random password") +# argparse apparently uses descriptions as old-style format strings special = ''.join(string.punctuation).translate({ord('%'): '%%'}) + +ap = argparse.ArgumentParser(description = "Generate a random password") arg_specs = [ (['-db'], {'help': "SQLite connect string (e.g. file path) to word list database"}), (['-t'], {'help': "Type of password to generate", 'choices': ['chbs', 'chars']}),