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

Maintain type when overriding values via env var and argv #24

Open
youming-lin opened this issue Apr 6, 2017 · 2 comments
Open

Maintain type when overriding values via env var and argv #24

youming-lin opened this issue Apr 6, 2017 · 2 comments

Comments

@youming-lin
Copy link
Collaborator

Env var and argv will assign non-JSON, non-PLIST to String type, always. This makes overriding numeric values with numeric values impossible. We should figure out a way to coerce the string values from env var and argv into the correct types.

@Fryie
Copy link

Fryie commented Nov 13, 2019

I have also run into this issue, it's also a problem for e.g. boolean values.

@Fryie
Copy link

Fryie commented Feb 10, 2020

A "workaround" is to instead supply a JSON dictionary for the parent key with the property to override as a single key. I believe, the library will then merge this dictionary with the dictionary for the parent key derived from other sources.

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