diff --git a/RepoFullDownloader-Core/Program.cs b/RepoFullDownloader-Core/Program.cs index 6dc9737..ad6c034 100644 --- a/RepoFullDownloader-Core/Program.cs +++ b/RepoFullDownloader-Core/Program.cs @@ -25,7 +25,10 @@ namespace RepoFullDownloader_Core { Directory.CreateDirectory("./output/"); } - if(args.Length != 0) + // Load Options from 'options.json' + string optionsJson = File.ReadAllText("./options.json"); + options = JsonSerializer.Deserialize(optionsJson); + if (args.Length != 0) { string url = args[0]; if(!args[0].StartsWith("https://") && !args[0].StartsWith("http://")) @@ -38,7 +41,7 @@ namespace RepoFullDownloader_Core } try { - DownloadRepo(url, false); + DownloadRepo(url, options.originalFilenames); } catch(Exception) { @@ -57,10 +60,6 @@ namespace RepoFullDownloader_Core return; } - // Load Options from 'options.json' - string optionsJson = File.ReadAllText("./options.json"); - options = JsonSerializer.Deserialize(optionsJson); - foreach (Repo r in options.repos) { if (r.isInstaller)