Skip to content

Add opt-in strict parsing for driver options - #278

Merged
zayenz merged 4 commits into
mainfrom
fix/144-options-validation
Nov 14, 2026
Merged

zayenz merged 4 commits into
mainfrom
fix/144-options-validation

Conversation

@zayenz

@zayenz zayenz commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Unknown arguments currently stop option parsing silently. For example, alpha --typo --help can run without reporting the typo or showing help. Add opt-in strict parsing to report leftover arguments, print help, and exit with failure. Existing calls retain their partial-parsing behaviour.

Provide parse_strict(argc, argv) and parse_permissive(argc, argv) as thin wrappers around the boolean parse overload. Use the named strict method in all examples that accept only named options. Remove EFPA's duplicate symmetry-option registration, which hid its other options. Document that strict parsing will become the default in a future major release, and add changelog entries under the existing unreleased 7.0.0 marker.

Validation:

  • Focused driver-options tests and all 499 integrity tests passed.
  • Built all 18 affected examples and checked help, unknown-option errors, and recognised-option parsing; also checked EFPA's custom options.
  • Documentation build and changelog validation passed.

Refs #144.

@zayenz
zayenz marked this pull request as ready for review November 14, 2026 10:34
@zayenz
zayenz merged commit 3d289f2 into main Nov 14, 2026
16 checks passed
@zayenz
zayenz deleted the fix/144-options-validation branch November 14, 2026 12:10
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