containsArg method

bool containsArg(
  1. String flag
)

return true if conatains flags

example run get sort . --skipRename

print(containsArg('--skipRename')); // true
print(containsArg('--relative')); // false

Implementation

bool containsArg(String flag) {
  return _args.contains(flag);
}