mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Removed silent switch
This commit is contained in:
parent
125703a2fa
commit
7991887e5e
3 changed files with 0 additions and 24 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue