From 9d9e185e3a6e6d4bef5fe3c86537a3dbf6ae423b Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 27 Jan 2020 10:07:46 -0500 Subject: [PATCH] doc: list largepage values in --help This commit adds the supported --use-largepages values to the --help menu. PR-URL: https://github.com/nodejs/node/pull/31537 Fixes: https://github.com/nodejs/node/issues/31533 Reviewed-By: Anna Henningsen Reviewed-By: Denys Otrishko Reviewed-By: David Carlier Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott --- src/node_options.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node_options.cc b/src/node_options.cc index 0d7ba51428058d..4d9398da9ca67b 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -807,7 +807,10 @@ PerProcessOptionsParser::PerProcessOptionsParser( #endif #endif AddOption("--use-largepages", - "Map the Node.js static code to large pages", + "Map the Node.js static code to large pages. Options are " + "'off' (the default value, meaning do not map), " + "'on' (map and ignore failure, reporting it to stderr), " + "or 'silent' (map and silently ignore failure)", &PerProcessOptions::use_largepages, kAllowedInEnvironment);