Skip to content

Commit 18acff0

Browse files
authored
doc: put --env-file-if-exists=config right under --env-file=config
PR-URL: #55131 Fixes: #55129 Refs: #53060 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1398c04 commit 18acff0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/api/cli.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,15 @@ export USERNAME="nodejs" # will result in `nodejs` as the value.
894894
If you want to load environment variables from a file that may not exist, you
895895
can use the [`--env-file-if-exists`][] flag instead.
896896

897+
### `--env-file-if-exists=config`
898+
899+
<!-- YAML
900+
added: v22.9.0
901+
-->
902+
903+
Behavior is the same as [`--env-file`][], but an error is not thrown if the file
904+
does not exist.
905+
897906
### `-e`, `--eval "script"`
898907

899908
<!-- YAML
@@ -1810,15 +1819,6 @@ is being linked to Node.js. Sharing the OpenSSL configuration may have unwanted
18101819
implications and it is recommended to use a configuration section specific to
18111820
Node.js which is `nodejs_conf` and is default when this option is not used.
18121821

1813-
### `--env-file-if-exists=config`
1814-
1815-
<!-- YAML
1816-
added: v22.9.0
1817-
-->
1818-
1819-
Behavior is the same as [`--env-file`][], but an error is not thrown if the file
1820-
does not exist.
1821-
18221822
### `--pending-deprecation`
18231823

18241824
<!-- YAML

0 commit comments

Comments
 (0)