DartdocOption<T> constructor
- String name,
- T defaultsTo,
- String help,
- OptionKind optionIs,
- bool mustExist,
- ConvertYamlToType<
T> _convertYamlToType, - ResourceProvider resourceProvider
Implementation
DartdocOption(this.name, this.defaultsTo, this.help, this.optionIs,
this.mustExist, this._convertYamlToType, this.resourceProvider) {
if (isDir || isFile || isGlob) {
assert(_isString || _isListString || _isMapString);
}
if (mustExist) {
// Globs by definition don't have to exist.
assert(isDir || isFile);
}
}