diff --git a/wgamesolv.py b/wgamesolv.py index 5cac275..6b68600 100755 --- a/wgamesolv.py +++ b/wgamesolv.py @@ -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