argument vector

The list of separate strings a program is started with: its own name followed by each argument.

In more detail

The list of separate strings a program is started with: its own name followed by each argument. Passing arguments as a list keeps each one intact, with no shell splitting or interpretation.

Example

A Node.js script reads its arguments from process.argv; child_process.spawn() takes them as an array.

Related terms

Taught in

References