Skip to content

Commit e505c07

Browse files
committed
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: #12245 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a4b9c58 commit e505c07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/node.cc

+3
Original file line numberDiff line numberDiff line change
@@ -3277,6 +3277,7 @@ void SetupProcessObject(Environment* env,
32773277
READONLY_PROPERTY(process, "_forceRepl", True(env->isolate()));
32783278
}
32793279

3280+
// -r, --require
32803281
if (!preload_modules.empty()) {
32813282
Local<Array> array = Array::New(env->isolate());
32823283
for (unsigned int i = 0; i < preload_modules.size(); ++i) {
@@ -3296,10 +3297,12 @@ void SetupProcessObject(Environment* env,
32963297
READONLY_PROPERTY(process, "noDeprecation", True(env->isolate()));
32973298
}
32983299

3300+
// --no-warnings
32993301
if (no_process_warnings) {
33003302
READONLY_PROPERTY(process, "noProcessWarnings", True(env->isolate()));
33013303
}
33023304

3305+
// --trace-warnings
33033306
if (trace_warnings) {
33043307
READONLY_PROPERTY(process, "traceProcessWarnings", True(env->isolate()));
33053308
}

0 commit comments

Comments
 (0)