From da59ec0afb687bddf13999e94e58bbf8d9bcdf8c Mon Sep 17 00:00:00 2001 From: BryanAldrich <31070516+BryanAldrich@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:24:21 -0400 Subject: [PATCH] Using config file and addl parameters causes a command error Adding an extra space at the end of the -c [file] line to match the other lines. --- .../Generators/OpenApi/OpenApiCSharpCodeGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/ApiClientCodeGen.Core/Generators/OpenApi/OpenApiCSharpCodeGenerator.cs b/src/Core/ApiClientCodeGen.Core/Generators/OpenApi/OpenApiCSharpCodeGenerator.cs index c5ca23a8a9..82156fc967 100644 --- a/src/Core/ApiClientCodeGen.Core/Generators/OpenApi/OpenApiCSharpCodeGenerator.cs +++ b/src/Core/ApiClientCodeGen.Core/Generators/OpenApi/OpenApiCSharpCodeGenerator.cs @@ -83,7 +83,7 @@ public string GenerateCode(IProgressReporter? pGenerateProgress) var configFile = Array.Find(configFilenames, File.Exists); if (configFile != null) { - arguments += $"-c \"{configFile}\""; + arguments += $"-c \"{configFile}\" "; } } @@ -151,4 +151,4 @@ public string GenerateCode(IProgressReporter? pGenerateProgress) private static string Sanitize(string code) => code.Replace("using System.Net.Mime;", null); } -} \ No newline at end of file +}