Removed silent switch

pull/2/head
Mark McDowall 12 years ago
parent 125703a2fa
commit 7991887e5e

@ -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;
}

Loading…
Cancel
Save