Simplification de l'argument du nombre de lettre
This commit is contained in:
parent
1563e1bf1d
commit
90aab55b75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user