@@ -2348,155 +2348,6 @@ void LoadEnvironment(Environment* env) { |
2348 | 2348 | } |
2349 | 2349 | } |
2350 | 2350 |
|
2351 | | -static void PrintHelp() { |
2352 | | - printf("Usage: node [options] [ -e script | script.js | - ] [arguments]\n" |
2353 | | - " node inspect script.js [arguments]\n" |
2354 | | - "\n" |
2355 | | - "Options:\n" |
2356 | | - " - script read from stdin (default; \n" |
2357 | | - " interactive mode if a tty)\n" |
2358 | | - " -- indicate the end of node options\n" |
2359 | | - " --abort-on-uncaught-exception\n" |
2360 | | - " aborting instead of exiting causes a\n" |
2361 | | - " core file to be generated for analysis\n" |
2362 | | -#if HAVE_OPENSSL && NODE_FIPS_MODE |
2363 | | - " --enable-fips enable FIPS crypto at startup\n" |
2364 | | -#endif // NODE_FIPS_MODE && NODE_FIPS_MODE |
2365 | | - " --experimental-modules experimental ES Module support\n" |
2366 | | - " and caching modules\n" |
2367 | | - " --experimental-repl-await experimental await keyword support\n" |
2368 | | - " in REPL\n" |
2369 | | - " --experimental-vm-modules experimental ES Module support\n" |
2370 | | - " in vm module\n" |
2371 | | - " --experimental-worker experimental threaded Worker support\n" |
2372 | | -#if HAVE_OPENSSL && NODE_FIPS_MODE |
2373 | | - " --force-fips force FIPS crypto (cannot be disabled)\n" |
2374 | | -#endif // HAVE_OPENSSL && NODE_FIPS_MODE |
2375 | | -#if defined(NODE_HAVE_I18N_SUPPORT) |
2376 | | - " --icu-data-dir=dir set ICU data load path to dir\n" |
2377 | | - " (overrides NODE_ICU_DATA)\n" |
2378 | | -#if !defined(NODE_HAVE_SMALL_ICU) |
2379 | | - " note: linked-in ICU data is present\n" |
2380 | | -#endif |
2381 | | -#endif // defined(NODE_HAVE_I18N_SUPPORT) |
2382 | | -#if HAVE_INSPECTOR |
2383 | | - " --inspect-brk[=[host:]port]\n" |
2384 | | - " activate inspector on host:port\n" |
2385 | | - " and break at start of user script\n" |
2386 | | - " --inspect-port=[host:]port\n" |
2387 | | - " set host:port for inspector\n" |
2388 | | - " --inspect[=[host:]port] activate inspector on host:port\n" |
2389 | | - " (default: 127.0.0.1:9229)\n" |
2390 | | -#endif // HAVE_INSPECTOR |
2391 | | - " --loader=file (with --experimental-modules) use the \n" |
2392 | | - " specified file as a custom loader\n" |
2393 | | - " for ECMAScript Modules \n" |
2394 | | - " --napi-modules load N-API modules (no-op - option\n" |
2395 | | - " kept for compatibility)\n" |
2396 | | - " --no-deprecation silence deprecation warnings\n" |
2397 | | - " --no-force-async-hooks-checks\n" |
2398 | | - " disable checks for async_hooks\n" |
2399 | | - " --no-warnings silence all process warnings\n" |
2400 | | -#if HAVE_OPENSSL |
2401 | | - " --openssl-config=file load OpenSSL configuration from the\n" |
2402 | | - " specified file (overrides\n" |
2403 | | - " OPENSSL_CONF)\n" |
2404 | | -#endif // HAVE_OPENSSL |
2405 | | - " --pending-deprecation emit pending deprecation warnings\n" |
2406 | | - " --preserve-symlinks preserve symbolic links when resolving\n" |
2407 | | - " --preserve-symlinks-main preserve symbolic links when resolving\n" |
2408 | | - " the main module\n" |
2409 | | - " --prof generate V8 profiler output\n" |
2410 | | - " --prof-process process V8 profiler output generated\n" |
2411 | | - " using --prof\n" |
2412 | | - " --redirect-warnings=file\n" |
2413 | | - " write warnings to file instead of\n" |
2414 | | - " stderr\n" |
2415 | | - " --throw-deprecation throw an exception on deprecations\n" |
2416 | | - " --title=title the process title to use on start up\n" |
2417 | | -#if HAVE_OPENSSL |
2418 | | - " --tls-cipher-list=val use an alternative default TLS cipher " |
2419 | | - "list\n" |
2420 | | -#endif // HAVE_OPENSSL |
2421 | | - " --trace-deprecation show stack traces on deprecations\n" |
2422 | | - " --trace-event-categories comma separated list of trace event\n" |
2423 | | - " categories to record\n" |
2424 | | - " --trace-event-file-pattern Template string specifying the\n" |
2425 | | - " filepath for the trace-events data, it\n" |
2426 | | - " supports ${rotation} and ${pid}\n" |
2427 | | - " log-rotation id. %%2$u is the pid.\n" |
2428 | | - " --trace-events-enabled track trace events\n" |
2429 | | - " --trace-sync-io show stack trace when use of sync IO\n" |
2430 | | - " is detected after the first tick\n" |
2431 | | - " --trace-warnings show stack traces on process warnings\n" |
2432 | | - " --track-heap-objects track heap object allocations for heap " |
2433 | | - "snapshots\n" |
2434 | | -#if HAVE_OPENSSL |
2435 | | - " --use-bundled-ca use bundled CA store" |
2436 | | -#if !defined(NODE_OPENSSL_CERT_STORE) |
2437 | | - " (default)" |
2438 | | -#endif |
2439 | | - "\n" |
2440 | | - " --use-openssl-ca use OpenSSL's default CA store" |
2441 | | -#if defined(NODE_OPENSSL_CERT_STORE) |
2442 | | - " (default)" |
2443 | | -#endif |
2444 | | -#endif // HAVE_OPENSSL |
2445 | | - "\n" |
2446 | | - " --v8-options print v8 command line options\n" |
2447 | | - " --v8-pool-size=num set v8's thread pool size\n" |
2448 | | - " --zero-fill-buffers automatically zero-fill all newly " |
2449 | | - "allocated\n" |
2450 | | - " Buffer and SlowBuffer instances\n" |
2451 | | - " -c, --check syntax check script without executing\n" |
2452 | | - " -e, --eval script evaluate script\n" |
2453 | | - " -h, --help print node command line options\n" |
2454 | | - " -i, --interactive always enter the REPL even if stdin\n" |
2455 | | - " does not appear to be a terminal\n" |
2456 | | - " -p, --print evaluate script and print result\n" |
2457 | | - " -r, --require module to preload (option can be " |
2458 | | - "repeated)\n" |
2459 | | - " -v, --version print Node.js version\n" |
2460 | | - "\n" |
2461 | | - "Environment variables:\n" |
2462 | | - "NODE_DEBUG ','-separated list of core modules\n" |
2463 | | - " that should print debug information\n" |
2464 | | - "NODE_DEBUG_NATIVE ','-separated list of C++ core debug\n" |
2465 | | - " categories that should print debug\n" |
2466 | | - " output\n" |
2467 | | - "NODE_DISABLE_COLORS set to 1 to disable colors in the REPL\n" |
2468 | | - "NODE_EXTRA_CA_CERTS path to additional CA certificates\n" |
2469 | | - " file\n" |
2470 | | -#if defined(NODE_HAVE_I18N_SUPPORT) |
2471 | | - "NODE_ICU_DATA data path for ICU (Intl object) data\n" |
2472 | | -#if !defined(NODE_HAVE_SMALL_ICU) |
2473 | | - " (will extend linked-in data)\n" |
2474 | | -#endif |
2475 | | -#endif // defined(NODE_HAVE_I18N_SUPPORT) |
2476 | | - "NODE_NO_WARNINGS set to 1 to silence process warnings\n" |
2477 | | -#if !defined(NODE_WITHOUT_NODE_OPTIONS) |
2478 | | - "NODE_OPTIONS set CLI options in the environment\n" |
2479 | | - " via a space-separated list\n" |
2480 | | -#endif // !defined(NODE_WITHOUT_NODE_OPTIONS) |
2481 | | -#ifdef _WIN32 |
2482 | | - "NODE_PATH ';'-separated list of directories\n" |
2483 | | -#else |
2484 | | - "NODE_PATH ':'-separated list of directories\n" |
2485 | | -#endif |
2486 | | - " prefixed to the module search path\n" |
2487 | | - "NODE_PENDING_DEPRECATION set to 1 to emit pending deprecation\n" |
2488 | | - " warnings\n" |
2489 | | - "NODE_PRESERVE_SYMLINKS set to 1 to preserve symbolic links\n" |
2490 | | - " when resolving and caching modules\n" |
2491 | | - "NODE_REDIRECT_WARNINGS write warnings to path instead of\n" |
2492 | | - " stderr\n" |
2493 | | - "NODE_REPL_HISTORY path to the persistent REPL history\n" |
2494 | | - " file\n" |
2495 | | - "OPENSSL_CONF load OpenSSL configuration from file\n" |
2496 | | - "\n" |
2497 | | - "Documentation can be found at https://nodejs.org/\n"); |
2498 | | -} |
2499 | | - |
2500 | 2351 |
|
2501 | 2352 | static void StartInspector(Environment* env, const char* path, |
2502 | 2353 | std::shared_ptr<DebugOptions> debug_options) { |
@@ -2772,11 +2623,6 @@ void ProcessArgv(std::vector<std::string>* args, |
2772 | 2623 | exit(0); |
2773 | 2624 | } |
2774 | 2625 |
|
2775 | | - if (per_process_opts->print_help) { |
2776 | | - PrintHelp(); |
2777 | | - exit(0); |
2778 | | - } |
2779 | | - |
2780 | 2626 | if (per_process_opts->print_v8_help) { |
2781 | 2627 | V8::SetFlagsFromString("--help", 6); |
2782 | 2628 | exit(0); |
|