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

CLI args nested key names #49

Closed
kesavkolla opened this issue Feb 29, 2020 · 3 comments
Closed

CLI args nested key names #49

kesavkolla opened this issue Feb 29, 2020 · 3 comments

Comments

@kesavkolla
Copy link

How to give key name for nested properties from CLI? Currently envvar_divider has a support for environment variables. Is there similar functionality exists for CLI args?

@naorlivne
Copy link
Owner

Something like:

my_script.py --my_nested_arg {"example": {"nested_example": "nested_value"}}

Then on the script you do something like:

from parse_it import ParseIt

my_nested_arg = parser.read_configuration_variable("my_nested_arg")

@naorlivne
Copy link
Owner

@kesavkolla did that answer your question?

@naorlivne
Copy link
Owner

closing as seems answered

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

No branches or pull requests

2 participants