Flag.fromString

Creates a flag from a formatted string.

Format may include short name -x and/or long name --name, comma-separated.

class Flag
static @safe
fromString
(
string format
,)

Parameters

format string

Formatted string.

description string

Description of the flag.

Throws

AssertionError if format does not contain 1 or 2 parts.