BuildApp.AddOption method

Adds support for a single-value command-line option.

public BuildOption AddOption(string template, string description, string defaultValue = null)
parameter description
template The option template, e.g. "-n|--name <name>".
description The option help description, e.g. "Sets the name".
defaultValue The default value for the option; null if omitted.

Return Value

The added BuildOption, which can be used from within a running target to determine whether the option was set, and to what value.

See Also