Skip to content

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