From b214ae44c84dbeb809f50291e7e0c29a8ac53cfb Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 15 Nov 2018 15:47:44 -0500 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/24383 Reviewed-By: Anna Henningsen Reviewed-By: Sam Roberts Reviewed-By: Richard Lau Reviewed-By: Ouyang Yadong Reviewed-By: Weijia Wang Reviewed-By: Franziska Hinkelmann Reviewed-By: Vse Mozhet Byt Reviewed-By: Michael Dawson --- lib/internal/print_help.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/internal/print_help.js b/lib/internal/print_help.js index d9ab3c1ad84e90..9081a09e4fb027 100644 --- a/lib/internal/print_help.js +++ b/lib/internal/print_help.js @@ -29,9 +29,17 @@ const envVars = new Map([ 'of stderr' }], ['NODE_REPL_HISTORY', { helpText: 'path to the persistent REPL ' + 'history file' }], + ['NODE_TLS_REJECT_UNAUTHORIZED', { helpText: 'set to 0 to disable TLS ' + + 'certificate validation' }], ['NODE_V8_COVERAGE', { helpText: 'directory to output v8 coverage JSON ' + 'to' }], - ['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }] + ['OPENSSL_CONF', { helpText: 'load OpenSSL configuration from file' }], + ['SSL_CERT_DIR', { helpText: 'sets OpenSSL\'s directory of trusted ' + + 'certificates when used in conjunction with --use-openssl-ca' }], + ['SSL_CERT_FILE', { helpText: 'sets OpenSSL\'s trusted certificate file ' + + 'when used in conjunction with --use-openssl-ca' }], + ['UV_THREADPOOL_SIZE', { helpText: 'sets the number of threads used in ' + + 'libuv\'s threadpool' }] ].concat(hasIntl ? [ ['NODE_ICU_DATA', { helpText: 'data path for ICU (Intl object) data' + hasSmallICU ? '' : ' (will extend linked-in data)' }]