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

[Feature Request] Add new config file types #137

Open
pi314ever opened this issue Apr 26, 2024 · 1 comment
Open

[Feature Request] Add new config file types #137

pi314ever opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pi314ever
Copy link

Currently, the config file only supports CLI-style flags as inputs. Is it possible with the current design to have the config also accept other well-known config formats such as json, yaml, and toml?

@martinjm97 martinjm97 added the enhancement New feature or request label Apr 26, 2024
@martinjm97
Copy link
Collaborator

Hi @pi314ever,

Thank you for the good question! We currently only support CLI style files using the config=[...] syntax https://github.com/swansonk14/typed-argument-parser?tab=readme-ov-file#loading-from-configuration-files.

You can load from a JSON file via https://github.com/swansonk14/typed-argument-parser?tab=readme-ov-file#load.

We'd be happy to accept PRs either using the current JSON support to extend the config=[...] syntax or to add support for other commonly used formats (e.g., yaml and toml).

--JK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants