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);