change the RUST version to match the new parameter list

This commit is contained in:
2024-05-22 16:32:41 -04:00
parent 7d3cb64142
commit 805917b26c
2 changed files with 139 additions and 82 deletions
+2 -10
View File
@@ -45,15 +45,7 @@ NUMBERS = "0123456789"
CONJUNCTIONS = ["and", "and a", "and the","or", "or the", "or a",
"with a", "with", "with the", "by a", "by the",
"on a", "on the","on", "in a", "in the", "in",
"for", "for a", "for the"]
# delete these
number = 1
targetLen = 20
useConjunction = False
add_punc = False
add_number = False
"for", "for a", "for the", "but", "so"]
def toInt(s, chkRange, errStr = "sorry, that's not a number", rangeStr = "sorry, I can't do that number"):
try:
@@ -72,7 +64,7 @@ def get_args(conf):
while narg<nargs:
a = sys.argv[narg]
if a=="-h" or a=="--help" or a=="--version":
print ("pwgen.py v1.3 generate passphrase; inspired by xkcd/936 and SteveGibson\n")
print ("pwgen.py v1.4 generate passphrase; inspired by xkcd/936 and SteveGibson\n")
print ("""Usage: pwgen.py [-sSpPkKnNcCaMX] [-L length] [num_phrases]
pwgen.py -h | --help | --version