Skip to content

Commit

Permalink
doc: put --env-file-if-exists=config right under --env-file=config
Browse files Browse the repository at this point in the history
PR-URL: nodejs#55131
Fixes: nodejs#55129
Refs: nodejs#53060
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
geeksilva97 authored and tpoisseau committed Nov 21, 2024
1 parent 7fe6f0b commit bbc158d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<!-- YAML
added: v22.9.0
-->

Behavior is the same as [`--env-file`][], but an error is not thrown if the file
does not exist.

### `-e`, `--eval "script"`

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

### `--env-file-if-exists=config`

<!-- YAML
added: v22.9.0
-->

Behavior is the same as [`--env-file`][], but an error is not thrown if the file
does not exist.

### `--pending-deprecation`

<!-- YAML
Expand Down

0 comments on commit bbc158d

Please sign in to comment.