Include digits by default.

This commit is contained in:
voussoir 2022-03-10 11:18:21 -08:00
parent 9530d0383a
commit 2a6bc2a306
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -80,12 +80,14 @@ def passwordy_argparse(args):
else: else:
if not any([args.letters, args.digits, args.hex, args.binary, args.punctuation]): if not any([args.letters, args.digits, args.hex, args.binary, args.punctuation]):
letters = True letters = True
digits = True
else: else:
letters = args.letters letters = args.letters
digits = args.digits
password = make_password( password = make_password(
args.length, args.length,
binary=args.binary, binary=args.binary,
digits=args.digits, digits=digits,
hex=args.hex, hex=args.hex,
letters=letters, letters=letters,
punctuation=args.punctuation, punctuation=args.punctuation,