diff --git a/src/Paket.Bootstrapper/ConsoleImpl.cs b/src/Paket.Bootstrapper/ConsoleImpl.cs index 831ddcadf7..3150f141e1 100644 --- a/src/Paket.Bootstrapper/ConsoleImpl.cs +++ b/src/Paket.Bootstrapper/ConsoleImpl.cs @@ -49,6 +49,16 @@ internal static void WriteTrace(string message) WriteConsole(message, ConsoleColor.DarkGray, Verbosity.Trace); } + internal static void WriteAlways(string message, params object[] parameters) + { + WriteConsoleCore(string.Format(message, parameters), Console.ForegroundColor); + } + + internal static void WriteAlways(string message) + { + WriteConsoleCore(message, Console.ForegroundColor); + } + private static void WriteConsole(string message, ConsoleColor consoleColor, Verbosity minVerbosity = Verbosity.Normal) { if (Verbosity < minVerbosity) @@ -56,6 +66,11 @@ private static void WriteConsole(string message, ConsoleColor consoleColor, Verb return; } + WriteConsoleCore(message, consoleColor); + } + + private static void WriteConsoleCore(string message, ConsoleColor consoleColor) + { var oldColor = Console.ForegroundColor; Console.ForegroundColor = consoleColor; Console.WriteLine(message); diff --git a/src/Paket.Bootstrapper/Program.cs b/src/Paket.Bootstrapper/Program.cs index 22aa823fa5..8393f07566 100644 --- a/src/Paket.Bootstrapper/Program.cs +++ b/src/Paket.Bootstrapper/Program.cs @@ -30,7 +30,7 @@ static void Main(string[] args) Environment.GetEnvironmentVariables(), fileProxy, argumentsFromDependenciesFile); if (options.ShowHelp) { - ConsoleImpl.WriteInfo(BootstrapperHelper.HelpText); + ConsoleImpl.WriteAlways(BootstrapperHelper.HelpText); return; }