Skip to content

Commit b214ae4

Browse files
cjihrigrvagg
authored andcommitted
cli: add missing env vars to --help
This adds NODE_TLS_REJECT_UNAUTHORIZED, SSL_CERT_DIR, SSL_CERT_FILE, and UV_THREADPOOL_SIZE to the --help menu. PR-URL: #24383 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent b22e95d commit b214ae4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/internal/print_help.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,17 @@ const envVars = new Map([
2929
'of stderr' }],
3030
['NODE_REPL_HISTORY', { helpText: 'path to the persistent REPL ' +
3131
'history file' }],
32+
['NODE_TLS_REJECT_UNAUTHORIZED', { helpText: 'set to 0 to disable TLS ' +
33+
'certificate validation' }],
3234
['NODE_V8_COVERAGE', { helpText: 'directory to output v8 coverage JSON ' +
3335
'to' }],
34-
['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }]
36+
['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }],
37+
['SSL_CERT_DIR', { helpText: 'sets OpenSSL\'s directory of trusted ' +
38+
'certificates when used in conjunction with --use-openssl-ca' }],
39+
['SSL_CERT_FILE', { helpText: 'sets OpenSSL\'s trusted certificate file ' +
40+
'when used in conjunction with --use-openssl-ca' }],
41+
['UV_THREADPOOL_SIZE', { helpText: 'sets the number of threads used in ' +
42+
'libuv\'s threadpool' }]
3543
].concat(hasIntl ? [
3644
['NODE_ICU_DATA', { helpText: 'data path for ICU (Intl object) data' +
3745
hasSmallICU ? '' : ' (will extend linked-in data)' }]

0 commit comments

Comments
 (0)