better beauty usage

This commit is contained in:
Ellpeck 2020-04-10 12:59:25 +02:00
parent fbd2c30c35
commit 9e328c7796

View file

@ -49,7 +49,7 @@ namespace GameBundle {
// Run beauty
var excludes = string.Empty;
if (options.ExcludedFiles.Length > 0)
excludes = "excludes=" + string.Join(";", options.ExcludedFiles);
excludes = '"' + string.Join(";", options.ExcludedFiles) + '"';
var log = options.Verbose ? "Detail" : "Error";
RunProcess(options, "ncbeauty", $"--loglevel={log} --force=True {path} Lib {excludes}");