readOption

Finds and reads an option from the configuration file or command line.

Command line options take precedence over configuration file entries.

bool
readOption
(
T
)
(
string names
,,
string help_text
)
if (
is(T : E[],
E
) &&
)

Parameters

names string

Option names. Separate multiple name variants with "|", as for std.getopt.

pvalue T*

Pointer to store the value. Unchanged if value was not found.

help_text string

Text to be displayed when the application is run with --help.

Return Value

Type: bool

true if the value was found, false otherwise.

See Also

readRequiredOption

Meta