addSwitch method

addSwitch(switchName)

Adds a field’s switch.

addSwitch(switchName: string)
ParameterTypeDescription
switchNamestringThe switch name.

Remarks

This overload adds a flag (switch without argument).

addSwitch(switchName, switchArgument)

Adds a field’s switch.

addSwitch(switchName: string, switchArgument: string)
ParameterTypeDescription
switchNamestringThe switch name.
switchArgumentstringThe switch value.

addSwitch(switchName, switchArgument)

Adds a field’s switch.

addSwitch(switchName: string, switchArgument: number)
ParameterTypeDescription
switchNamestringThe switch name.
switchArgumentnumberThe switch value.

addSwitch(switchName, switchArgument)

Adds a field’s switch.

addSwitch(switchName: string, switchArgument: number)
ParameterTypeDescription
switchNamestringThe switch name.
switchArgumentnumberThe switch value.

See Also