process.arg

process.arg

process.arg

Function

Append a command line argument.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNoneThe parameter to be appended will be converted to a string first when calling.

Return value

TypeDescription
ProcessReturns the new process builder.

Example

Notes

  • The example uses Windows cmd; Linux/macOS can be changed to process('sh').args(['-c', 'echo BT']).