From 9d71619bbee7c198cb20ec4702024ac983b5db7d Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 22 Jun 2018 16:16:03 -0700 Subject: [PATCH] src: add --title command line argument Simple utility command line argument for setting the process title on process startup. PR-URL: https://github.com/nodejs/node/pull/21477 Reviewed-By: Bradley Farias Reviewed-By: Anna Henningsen --- doc/api/cli.md | 8 ++++++++ doc/node.1 | 3 +++ src/node.cc | 10 ++++++++++ test/parallel/test-process-title-cli.js | 13 +++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 test/parallel/test-process-title-cli.js diff --git a/doc/api/cli.md b/doc/api/cli.md index 54ede74e6e4c37..7ebfb084d76abb 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -278,6 +278,13 @@ added: v0.11.14 Throw errors for deprecations. +### `--title=title` + + +Set `process.title` on startup. + ### `--tls-cipher-list=list`