You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	Removed silent switch
This commit is contained in:
		| @@ -31,12 +31,6 @@ namespace NzbDrone.App.Test | ||||
|         [TestCase("/u", ApplicationMode.UninstallService)] | ||||
|         [TestCase("-U", ApplicationMode.UninstallService)] | ||||
|         [TestCase("-u", ApplicationMode.UninstallService)] | ||||
|         [TestCase("s", ApplicationMode.Silent)] | ||||
|         [TestCase("S", ApplicationMode.Silent)] | ||||
|         [TestCase("/S", ApplicationMode.Silent)] | ||||
|         [TestCase("/s", ApplicationMode.Silent)] | ||||
|         [TestCase("-S", ApplicationMode.Silent)] | ||||
|         [TestCase("-s", ApplicationMode.Silent)] | ||||
|         public void GetApplicationMode_single_arg(string arg, ApplicationMode mode) | ||||
|         { | ||||
|             Router.GetApplicationMode(new[] { arg }).Should().Be(mode); | ||||
|   | ||||
| @@ -20,7 +20,6 @@ namespace NzbDrone.Common | ||||
|             Console.WriteLine("     Commands:"); | ||||
|             Console.WriteLine("                 /i  Install the application as a Windows Service ({0}).", ServiceProvider.NZBDRONE_SERVICE_NAME); | ||||
|             Console.WriteLine("                 /u  Uninstall already installed Windows Service ({0}).", ServiceProvider.NZBDRONE_SERVICE_NAME); | ||||
|             Console.WriteLine("                 /s  Run NzbDrone without a Console Window."); | ||||
|             Console.WriteLine("                 <No Arguments>  Run application in console mode."); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -81,22 +81,6 @@ namespace NzbDrone | ||||
|                             _serviceProvider.UnInstall(ServiceProvider.NZBDRONE_SERVICE_NAME); | ||||
|                         } | ||||
|  | ||||
|                         break; | ||||
|                     } | ||||
|                 case ApplicationMode.Silent: | ||||
|                     { | ||||
|                         var startInfo = new ProcessStartInfo(); | ||||
|                         startInfo.FileName = _environmentProvider.GetNzbDroneExe(); | ||||
|                         startInfo.WorkingDirectory = _environmentProvider.ApplicationPath; | ||||
|  | ||||
|                         startInfo.UseShellExecute = false; | ||||
|                         startInfo.RedirectStandardOutput = true; | ||||
|                         startInfo.RedirectStandardError = true; | ||||
|                         startInfo.CreateNoWindow = true; | ||||
|  | ||||
|                         _processProvider.Start(startInfo); | ||||
|  | ||||
|                         Environment.Exit(0); | ||||
|                         break; | ||||
|                     } | ||||
|                 default: | ||||
| @@ -119,7 +103,6 @@ namespace NzbDrone | ||||
|  | ||||
|             if (arg == "i") return ApplicationMode.InstallService; | ||||
|             if (arg == "u") return ApplicationMode.UninstallService; | ||||
|             if (arg == "s") return ApplicationMode.Silent; | ||||
|  | ||||
|             return ApplicationMode.Help; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user