Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use -u short flag
  • Loading branch information
guybedford committed Aug 5, 2020
commit 52f216cd0506de9cfca2b40dfd137a94e3e17c92
4 changes: 2 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ $ node --completion-bash > node_bash_completion
$ source node_bash_completion
```

### `-m`, `--conditions=conditionA,conditionB`
### `-u`, `--conditions=conditionA,conditionB`
Comment thread
guybedford marked this conversation as resolved.
Outdated
<!-- YAML
added: REPLACEME
-->
Expand Down Expand Up @@ -1247,7 +1247,7 @@ node --require "./a.js" --require "./b.js"

Node.js options that are allowed are:
<!-- node-options-node start -->
* `--conditions`, `-m`
* `--conditions`, `-u`
* `--diagnostic-dir`
* `--disable-proto`
* `--enable-fips`
Expand Down
2 changes: 1 addition & 1 deletion doc/node.1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Aborting instead of exiting causes a core file to be generated for analysis.
.It Fl -completion-bash
Print source-able bash completion script for Node.js.
.
.It Fl m , Fl -conditions Ar string
.It Fl u , Fl -conditions Ar string
Use custom conditional exports conditions
.Ar string
.
Expand Down
2 changes: 1 addition & 1 deletion src/node_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
"set the conditional exports conditions",
Comment thread
guybedford marked this conversation as resolved.
Outdated
&EnvironmentOptions::conditions,
kAllowedInEnvironment);
AddAlias("-m", "--conditions");
AddAlias("-u", "--conditions");
AddOption("--diagnostic-dir",
"set dir for all output files"
" (default: current working directory)",
Expand Down