withDefault static method

DefaultedOption<String> withDefault(
  1. String name, {
  2. required String defaultValue,
  3. RegExp? regex,
  4. String? short,
  5. String? description,
  6. bool hidden = false,
})

Implementation

static DefaultedOption<String> withDefault(
  String name, {
  required String defaultValue,
  RegExp? regex,
  String? short,
  String? description,
  bool hidden = false,
}) => _DefaultedStringOption(
  name,
  defaultValue: defaultValue,
  regex: regex,
  short: short,
  description: description,
  hidden: hidden,
);