Skip to content

Commit f9e4279

Browse files
sam-githubMylesBorins
authored andcommitted
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. Backport-PR-URL: #14483 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 6518932 commit f9e4279

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
@@ -3317,6 +3317,7 @@ void SetupProcessObject(Environment* env,
33173317
READONLY_PROPERTY(process, "_forceRepl", True(env->isolate()));
33183318
}
33193319

3320+
// -r, --require
33203321
if (preload_module_count) {
33213322
CHECK(preload_modules);
33223323
Local<Array> array = Array::New(env->isolate());
@@ -3339,10 +3340,12 @@ void SetupProcessObject(Environment* env,
33393340
READONLY_PROPERTY(process, "noDeprecation", True(env->isolate()));
33403341
}
33413342

3343+
// --no-warnings
33423344
if (no_process_warnings) {
33433345
READONLY_PROPERTY(process, "noProcessWarnings", True(env->isolate()));
33443346
}
33453347

3348+
// --trace-warnings
33463349
if (trace_warnings) {
33473350
READONLY_PROPERTY(process, "traceProcessWarnings", True(env->isolate()));
33483351
}

0 commit comments

Comments
 (0)