From 77426d8eeeb81a33e31bc0123c8aff64b4745836 Mon Sep 17 00:00:00 2001 From: Edy Silva Date: Thu, 26 Sep 2024 10:38:05 -0300 Subject: [PATCH] doc: put --env-file-if-exists=config right under --env-file=config --- doc/api/cli.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 3152f9409d5721..5a000c04588fd2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -872,6 +872,15 @@ export USERNAME="nodejs" # will result in `nodejs` as the value. If you want to load environment variables from a file that may not exist, you can use the [`--env-file-if-exists`][] flag instead. +### `--env-file-if-exists=config` + + + +Behavior is the same as [`--env-file`][], but an error is not thrown if the file +does not exist. + ### `-e`, `--eval "script"` - -Behavior is the same as [`--env-file`][], but an error is not thrown if the file -does not exist. - ### `--pending-deprecation`