Argument.fromString

Creates an argument from a formatted string.

Format must be enclosed in <> (required) or [] (optional). Name may end with ... to indicate variadic argument.

class Argument
static @safe
fromString
(
string format
,,
string defaultValue = null
)

Parameters

format string

Formatted string.

description string

Description of the argument.

defaultValue string

Default value, or null.

Throws

AssertionError if format is not enclosed in <> or [].