From bbc158d0ec1a735f44129150b433434b770c1778 Mon Sep 17 00:00:00 2001 From: "Edigleysson Silva (Edy)" Date: Fri, 27 Sep 2024 21:01:43 -0300 Subject: [PATCH] doc: put --env-file-if-exists=config right under --env-file=config PR-URL: https://github.com/nodejs/node/pull/55131 Fixes: https://github.com/nodejs/node/issues/55129 Refs: https://github.com/nodejs/node/pull/53060 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- 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 fe17c87eddbd91..a58447081409f8 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -894,6 +894,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`