addForceFlag method

void addForceFlag({
  1. String? help,
  2. bool? defaultsTo = false,
  3. bool negatable = true,
  4. void callback(
    1. bool
    )?,
  5. bool hide = false,
  6. List<String> aliases = const [],
})

Implementation

void addForceFlag({
  String? help,
  bool? defaultsTo = false,
  bool negatable = true,
  void Function(bool)? callback,
  bool hide = false,
  List<String> aliases = const [],
}) {
  _force = true;
  _parser.addFlag(
    'force',
    abbr: 'f',
    help: help,
    defaultsTo: defaultsTo,
    negatable: negatable,
    callback: callback,
    hide: hide,
    aliases: aliases,
  );
}