dir static method
Implementation
static Directory dir(
ArgResults argResults,
Never Function(String message) usageException,
) {
final path = argResults.requireParam(_name);
final dir = Directory(path);
if (!dir.existsSync()) {
usageException('Not found directory: $path');
}
return dir;
}