From eacc799dbd245f2832b1838c1714fcfccab5c7f3 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Wed, 18 Sep 2019 17:39:39 -0500 Subject: [PATCH] Add comment --- gen_pass.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']}), -- 2.30.2