Skip to content

Commit 5132f50

Browse files
author
Jeff Escalante
committed
Merge pull request #96 from carrot/env-fix
fix 🐛 with opts.env being set to null in cli
2 parents b11038b + 3733ed8 commit 5132f50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export default class Config {
3939
* @return {Object} validated and fully filled out objects
4040
*/
4141
validateOpts (opts) {
42+
// override argpare's annoying use of null values
43+
if (opts.env === null) { opts.env = undefined }
4244
const schema = Joi.object().keys({
4345
root: Joi.string().required(),
4446
env: Joi.string(),

0 commit comments

Comments
 (0)