-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Consider the following pseudocode (in main):
settings = parser.parse_args()
print(f'strict value: {settings.strict}')
print(f'strict type: {type(settings.strict)}')
print(f'strict boolean: {bool(settings.strict)}')
The following invocation:
(.venv) pgn-tactics-generator$ ./main.py --strict=False
would produce unwanted results:
strict value: False
strict type: <class 'str'>
strict boolean: True
Looking up stockfish-x86_64-bmi2 ...
strict variable value is 'False' (string). bool( evaluates to True...
Probably something similar to
Lines 46 to 48 in f81c421
| parser.add_argument("--includeBlunder", metavar="INCLUDE_BLUNDER", default=True, | |
| type=str2bool, const=True, dest="include_blunder", nargs="?", | |
| help="If False then generated puzzles won't include initial blunder move") |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels