command-line flag

An option typed after a program's name to change how it runs, such as --watch in node --watch server.js.

In more detail

Node.js flags go before the script name; anything after it is passed to your program in process.argv. NODE_OPTIONS can supply flags through the environment instead.

Related terms

Taught in

References