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

Add cli_ignore_unknown_args config option. #405

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

kschwab
Copy link
Contributor

@kschwab kschwab commented Sep 14, 2024

Fixes #404.

Adds a config that will ignore unknown CLI args, equivalent to argparse.parse_known_args.

docs/index.md Outdated Show resolved Hide resolved
docs/index.md Outdated Show resolved Hide resolved
kschwab and others added 2 commits September 17, 2024 06:43
Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
docs/index.md Show resolved Hide resolved
@kschwab kschwab mentioned this pull request Sep 17, 2024
@kschwab kschwab marked this pull request as ready for review September 17, 2024 12:54
@hramezani
Copy link
Member

Thanks @kschwab

@hramezani hramezani merged commit 7e7ccdb into pydantic:main Sep 17, 2024
20 checks passed
@kschwab kschwab deleted the cli-ignore-unknown branch September 26, 2024 12:40
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.

Ignore unknown sys.argv
2 participants