yargs-parser
Advanced tools
Comparing version 4.2.1 to 5.0.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="5.0.0"></a> | ||
# [5.0.0](https://github.com/yargs/yargs-parser/compare/v4.2.1...v5.0.0) (2017-02-18) | ||
### Bug Fixes | ||
* environment variables should take precedence over config file ([#81](https://github.com/yargs/yargs-parser/issues/81)) ([76cee1f](https://github.com/yargs/yargs-parser/commit/76cee1f)) | ||
### BREAKING CHANGES | ||
* environment variables will now override config files (args, env, config-file, config-object) | ||
<a name="4.2.1"></a> | ||
@@ -7,0 +22,0 @@ ## [4.2.1](https://github.com/yargs/yargs-parser/compare/v4.2.0...v4.2.1) (2017-01-02) |
@@ -276,10 +276,10 @@ var camelCase = require('camelcase') | ||
// 1. command line arg | ||
// 2. value from config file | ||
// 3. value from config objects | ||
// 4. value from env var | ||
// 2. value from env var | ||
// 3. value from config file | ||
// 4. value from config objects | ||
// 5. configured default value | ||
applyEnvVars(argv, true) // special case: check env vars that point to config file | ||
applyEnvVars(argv, false) | ||
setConfig(argv) | ||
setConfigObjects() | ||
applyEnvVars(argv, false) | ||
applyDefaultsAndAliases(argv, flags.aliases, defaults) | ||
@@ -286,0 +286,0 @@ applyCoercions(argv) |
{ | ||
"name": "yargs-parser", | ||
"version": "4.2.1", | ||
"version": "5.0.0", | ||
"description": "the mighty option parser used by yargs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # yargs-parser | ||
<img width="250" src="yargs-logo.png"> | ||
<img width="250" src="https://github.com/yargs/yargs-parser/blob/master/yargs-logo.png"> | ||
@@ -17,0 +17,0 @@ ## Example |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37888