Skip to content

Fix windows & validate integer&double options#81

Merged
msoos merged 2 commits into
masterfrom
develop
Apr 30, 2026
Merged

Fix windows & validate integer&double options#81
msoos merged 2 commits into
masterfrom
develop

Conversation

@msoos

@msoos msoos commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

msoos and others added 2 commits April 19, 2026 18:55
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The myopt/myopt2 macros wrapped std::atoi/std::stod, both of which
return 0 (or throw a bare 'stod') on non-numeric input rather than
diagnosing the offending argument. Add fc_int/fc_double helpers that
validate parsing and throw invalid_argument with the original string,
and route every option through them. e.g. `--verb stuff` now reports
`not an integer: stuff` instead of silently parsing as 0.
@msoos msoos changed the title Develop Fix windows & validate integer&double options Apr 30, 2026
@msoos msoos merged commit c818300 into master Apr 30, 2026
13 checks passed
@msoos msoos deleted the develop branch April 30, 2026 18:32
@msoos msoos restored the develop branch May 2, 2026 09:32
Sign up for free to 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.

1 participant