mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:45:32 -05:00
src: supply missing comments for CLI options
A few of the CLI option values exposed as properties on the process object were missing a comment, fix this. PR-URL: https://github.com/nodejs/node/pull/12245 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
a4b9c585b3
commit
e505c079e0
1 file changed
+3
@@ -3277,6 +3277,7 @@ void SetupProcessObject(Environment* env,
|
||||
READONLY_PROPERTY(process, "_forceRepl", True(env->isolate()));
|
||||
}
|
||||
|
||||
// -r, --require
|
||||
if (!preload_modules.empty()) {
|
||||
Local<Array> array = Array::New(env->isolate());
|
||||
for (unsigned int i = 0; i < preload_modules.size(); ++i) {
|
||||
@@ -3296,10 +3297,12 @@ void SetupProcessObject(Environment* env,
|
||||
READONLY_PROPERTY(process, "noDeprecation", True(env->isolate()));
|
||||
}
|
||||
|
||||
// --no-warnings
|
||||
if (no_process_warnings) {
|
||||
READONLY_PROPERTY(process, "noProcessWarnings", True(env->isolate()));
|
||||
}
|
||||
|
||||
// --trace-warnings
|
||||
if (trace_warnings) {
|
||||
READONLY_PROPERTY(process, "traceProcessWarnings", True(env->isolate()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user