Argument.parse

Argument parse(string source)

Parses an argument from a source string.

Extracts the argument name and optional default value from a description string.

Parameters

sourceThe source string containing the argument definition.

Returns

A new Argument instance.