You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 621e435
Browse filesBrowse the repository at this point in the historyBrowse files
Fixed failure when reading integer option value from short form (#8)
* settings
* fix: fixed failure message to be passed to `MissingValueException`
* feature: added unit-tests to exercise the observed failure
* fix: falsy default values causing `MissingValueException` for option arguments
Using a truthiness check `if given_value:` on option arguments causes
valid, falsy default values (such as `0`, `0.0`, or `False`) to be treated
as if they were missing or not set. This leads to an incorrect
`MissingValueException` being raised during command-line argument parsing.
Replacing this with an explicit `is not None` check allows falsy default
values to be correctly recognized, processed, and validated according to
their respective value types.
* 0.8.12
0 commit comments