Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the CLI checking of config arguments #667

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Oct 29, 2024

This change moves the validation of the config file earlier in the setup of the arg parser. The argparse library itself is validating whether the file exists, so seems appropriate to also validate whether the file is a proper toml config file early as well.

This change moves the validation of the config file earlier in
the setup of the arg parser. The argparse library itself is
validating whether the file exists, so seems appropriate to also
validate whether the file is a proper toml config file early
as well.

Signed-off-by: Eric Brown <eric.brown@securesauce.dev>
@ericwb ericwb merged commit c5d6d46 into securesauce:main Oct 29, 2024
20 checks passed
@ericwb ericwb deleted the refactor_cli branch October 29, 2024 22:22
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