RunnerCommand constructor

RunnerCommand()

Implementation

RunnerCommand() : super() {
  argParser
    ..addMultiOption(
      libPathOption.name,
      abbr: libPathOption.abbr,
      help: libPathOption.help,
      valueHelp: libPathOption.valueHelp ?? libPathOption.defaultsTo,
    )
    ..addMultiOption(
      assetPathOption.name,
      abbr: assetPathOption.abbr,
      help: assetPathOption.help,
      valueHelp: assetPathOption.valueHelp ?? assetPathOption.defaultsTo,
    )
    ..addOption(
      dustbinPathOption.name,
      abbr: dustbinPathOption.abbr,
      help: dustbinPathOption.help,
      valueHelp: dustbinPathOption.valueHelp ?? dustbinPathOption.defaultsTo,
    )
    ..addOption(
      listPathOption.name,
      abbr: listPathOption.abbr,
      help: listPathOption.help,
      valueHelp: listPathOption.valueHelp ?? listPathOption.defaultsTo,
    )
    ..addOption(
      configPathOption.name,
      help: configPathOption.help,
      valueHelp: configPathOption.valueHelp ?? configPathOption.defaultsTo,
    )
    ..addMultiOption(
      nameReplaceOption.name,
      abbr: nameReplaceOption.abbr,
      help: nameReplaceOption.help,
      valueHelp: nameReplaceOption.valueHelp ?? nameReplaceOption.defaultsTo,
    )
    ..addMultiOption(
      excludePathOption.name,
      abbr: excludePathOption.abbr,
      help: excludePathOption.help,
      valueHelp: excludePathOption.valueHelp ?? excludePathOption.defaultsTo,
    )
    ..addOption(
      formatTypeOption.name,
      help: formatTypeOption.help,
      valueHelp: formatTypeOption.valueHelp ?? formatTypeOption.defaultsTo,
      allowed: FormatType.values.map((FormatType type) => type.toString().split('.').last)
    );
}