Skip to content

Fixed failure when reading integer option value from short form - #8

Merged
mwsis merged 5 commits into
masterfrom
5-failure-when-reading-integer-option-value-from-short-form
Jul 27, 2026
Merged

Fixed failure when reading integer option value from short form#8
mwsis merged 5 commits into
masterfrom
5-failure-when-reading-integer-option-value-from-short-form

Conversation

@synesissoftware

Copy link
Copy Markdown
Owner

…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.
@mwsis
mwsis merged commit 621e435 into masterJul 27, 2026
8 checks passed
@mwsis
mwsis deleted the 5-failure-when-reading-integer-option-value-from-short-form branch July 27, 2026 23:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@synesissoftware@mwsis