Permalink
Please
sign in to comment.
Browse files
src: add --title command line argument
Simple utility command line argument for setting the process title on process startup. PR-URL: #21477 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
- Loading branch information...
Showing
with
34 additions
and 0 deletions.
- +8 −0 doc/api/cli.md
- +3 −0 doc/node.1
- +10 −0 src/node.cc
- +13 −0 test/parallel/test-process-title-cli.js
| @@ -0,0 +1,13 @@ | |||
| // Flags: --title=foo | |||
| 'use strict'; | |||
|
|
|||
| const common = require('../common'); | |||
|
|
|||
| if (common.isSunOS) | |||
| common.skip(`Unsupported platform [${process.platform}]`); | |||
|
|
|||
| const assert = require('assert'); | |||
|
|
|||
| // Verifies that the --title=foo command line flag set the process | |||
| // title on startup. | |||
| assert.strictEqual(process.title, 'foo'); | |||
0 comments on commit
d063056