private static void Main(string[] args) { DirectoryRepository directoryRepository = new DirectoryFileSystem(); string rootPath = ""; foreach(var arg in args) { if (arg.StartsWith("--path=")) { rootPath = arg.Replace("--path=", ""); } } var rootFolder = directoryRepository.BuildDirectoryInfo(rootPath); }
private static void Main(string[] args) { DirectoryRepository directoryRepository = new DirectoryFileSystem(); string rootPath = ""; foreach (var arg in args) { if (arg.StartsWith("--path=")) { rootPath = arg.Replace("--path=", ""); } } var rootFolder = directoryRepository.BuildDirectoryInfo(rootPath); }