Function readOption
Finds and reads an option from the configuration file or command line.
bool readOption(T)
(
string names,
T* pvalue,
string help_text
)
if (isOptionValue!T || is(T : E[], E) && isOptionValue!E);
Command line options take precedence over configuration file entries.
Parameters
Name | Description |
---|---|
names | Option names. Separate multiple name variants with "|",
as for std . |
pvalue | Pointer to store the value. Unchanged if value was not found. |
help_text | Text to be displayed when the application is run with --help. |
Returns
true
if the value was found, false
otherwise.
See Also
readRequiredOption