From f9e427945bbcfc43aafbbfa7addeb1a59d388ee8 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 5 Apr 2017 14:04:44 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/14483 PR-URL: https://github.com/nodejs/node/pull/12245 Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- src/node.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node.cc b/src/node.cc index 73ed460f361b44..180afa25f78f3e 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3317,6 +3317,7 @@ void SetupProcessObject(Environment* env, READONLY_PROPERTY(process, "_forceRepl", True(env->isolate())); } + // -r, --require if (preload_module_count) { CHECK(preload_modules); Local array = Array::New(env->isolate()); @@ -3339,10 +3340,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())); }