V8 Javascript API

Command.Argument Class Reference

Description

Interface that describes a command argument.

Properties

Any  default
The default value of the argument. More...
String  description
Description of the argument.
String  type
The type of data expected for the argument. More...

Properties

Any Command.​Argument.default

The default value of the argument. If set to any value other than undefined then the argument is optional when calling the command and will default to the value provided.

String Command.​Argument.description

Description of the argument.

String Command.​Argument.type

The type of data expected for the argument. An argument's type is enforced by RealityServer and if a provided value cannot be converted to the type an error is returned and the command not called.