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

feat: add option to lookup from env variable #48

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

darkgnotic
Copy link

As requested and specified in #30

An Option's value, in order of increasing precedence, is taken from:

  • the Option's defaultValue
  • the value from a config file
  • the value from the Option's env variable 🆕
  • the value from the command line

Values from process.env are parsed as if they were specified on the command line.

@darkgnotic
Copy link
Author

@Roaders I took a stab at #30. Thanks for maintaining this cool library!

@Roaders
Copy link
Owner

Roaders commented Oct 31, 2024

Thanks for the PR. I will try to get round to taking a proper look at it soon.

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.

2 participants