Skip to content

Conversation

@phillip-stephens
Copy link
Contributor

Had an issue with ZGrab2 when using both CLI args and an ini file for the Multiple module. The desired behavior is that Validation logic for ZCommander is applied after parsing both the ini file AND the CLI args. This is because it's often the case that the ini file alone might fail validation as the user has passed in some args thru CLI args.

This PR allows callers to optionally specify that they will handle calling Validate on the IniParser, making it their responsibility. This allows them to parse both the ini file and the CLI args before checking if everything is valid.

@zakird zakird merged commit ec78c6d into master Nov 26, 2025
1 check passed
@zakird zakird deleted the phillip/optionalize-validation-after-ini-parse branch November 26, 2025 02:54
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.

3 participants