Home > @momentum-design/common > Command > collect

Command.collect() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Collect all CLI arguments as parameters.

Signature:

protected collect(): Params;

Returns:

Params

  • A Record of parameters provided via the CLI execution.

Remarks

When providing a CLI execution string to a Command, the arguments must be seperated from the rest of the CLI execution command via the appropriate separator string, wrapped in one empty space on each side.