Include digits by default.
This commit is contained in:
parent
9530d0383a
commit
2a6bc2a306
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue