Option constructor

Option(
  1. String name, {
  2. String? abbr,
  3. String? help,
  4. String? valueHelp,
  5. Iterable<String>? allowed,
  6. Map<String, String>? allowedHelp,
  7. String? defaultsTo,
  8. void callback(
    1. String?
    )?,
  9. bool mandatory = false,
  10. bool hide = false,
  11. List<String> aliases = const [],
})

Implementation

Option(
  String name, {
  String? abbr,
  String? help,
  String? valueHelp,
  Iterable<String>? allowed,
  Map<String, String>? allowedHelp,
  String? defaultsTo,
  void Function(String?)? callback,
  bool mandatory = false,
  bool hide = false,
  List<String> aliases = const [],
}) : super(
        name,
        abbr,
        help,
        valueHelp,
        allowed,
        allowedHelp,
        defaultsTo,
        callback,
        OptionType.single,
        mandatory: mandatory,
        hide: hide,
        aliases: aliases,
      );