From 90aab55b7597cd359ce65091008c32ff96f82681 Mon Sep 17 00:00:00 2001 From: Antoine Van Elstraete Date: Mon, 24 Jan 2022 18:51:54 +0100 Subject: [PATCH] Simplification de l'argument du nombre de lettre --- wgamesolv.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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