mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 14:56:19 +00:00

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 <bradley.meck@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
// 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');
|