From 813fe257bdf669c6fe85d2c14401aab8c0125b4e Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 00:13:04 +0000 Subject: [PATCH] Update src/dotnet_mytool/Program.cs --- src/dotnet_mytool/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dotnet_mytool/Program.cs b/src/dotnet_mytool/Program.cs index ed47325..271765d 100644 --- a/src/dotnet_mytool/Program.cs +++ b/src/dotnet_mytool/Program.cs @@ -28,10 +28,12 @@ static void SetEnvironmentVariable(string variable, string value, string target) Environment.SetEnvironmentVariable(variable, value, envTarget); Console.WriteLine($"Environment variable {variable} set to {value} for {target}."); } + { { Console.WriteLine("Invalid format. Use VAR_NAME=value."); return; } + } rootCommand.AddCommand(setEnvCommand);