Explorar o código

Merge pull request #420 from NextTurn/cli

Revert CLI behaviors in non-interactive mode
Oleg Nenashev %!s(int64=5) %!d(string=hai) anos
pai
achega
2d1ffbacfa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Core/ServiceWrapper/Main.cs

+ 1 - 1
src/Core/ServiceWrapper/Main.cs

@@ -532,7 +532,7 @@ namespace winsw
         /// <exception cref="Exception">Any unhandled exception</exception>
         public static void Run(string[] _args, ServiceDescriptor? descriptor = null)
         {
-            bool inCliMode = Console.OpenStandardInput() != Stream.Null;
+            bool inCliMode = _args.Length > 0;
 
             // If descriptor is not specified, initialize the new one (and load configs from there)
             descriptor ??= new ServiceDescriptor();