OptionArgumentDefinition<T, U> constructor
OptionArgumentDefinition<T, U> ({
- required String name,
- required String? description,
- required String? valueDescription,
- required UsageGroup? usageGroup,
- required U defaultValue,
- required ValueParser<
T> parser, - required ValuePrinter<
T> printer, - required Accumulator<
T, U> accumulator, - required String? short,
- required Flag? flag,
Implementation
OptionArgumentDefinition(
{required String name,
required String? description,
required this.valueDescription,
required UsageGroup? usageGroup,
required U defaultValue,
required ValueParser<T> parser,
required ValuePrinter<T> printer,
required Accumulator<T, U> accumulator,
required this.short,
required this.flag})
: super(
name: name,
description: description,
usageGroup: usageGroup,
requires: Requires.optional(defaultValue),
parser: parser,
printer: printer,
accumulator: accumulator);