Program.argument

Adds an argument from formatted string.

class Program
override @safe
argument
(
string format
,,
string defaultValue = null
)

Parameters

format string

Formatted string defining the argument.

description string

Description of the argument.

defaultValue string

Default value of the argument, or null.

Throws

AssertionError if the argument format is invalid or an argument with the same name already exists.