Simplification de l'argument du nombre de lettre

This commit is contained in:
Antoine Van Elstraete 2022-01-24 18:51:54 +01:00
parent 1563e1bf1d
commit 90aab55b75

View File

@ -25,6 +25,7 @@ parser.add_argument(
'--nbLetters',
type=int,
help='Nombre de lettres, un entier',
default=False,
required=True
)
parser.add_argument(
@ -73,10 +74,7 @@ def load_dict(dict_file):
fl = args.firstLetter
# Nbr Letters
if args.firstLetter:
nb = args.nbLetters
else:
nbLetters = False
nb = args.nbLetters
# Pattern
pattern = args.pattern