mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
NzbDrone Update no longer opens console/browser.
This commit is contained in:
parent
46c093559e
commit
34f3ee6b4b
18 changed files with 137 additions and 85 deletions
26
NzbDrone.Common/EnvironmentInfo/StartupArguments.cs
Normal file
26
NzbDrone.Common/EnvironmentInfo/StartupArguments.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Common.EnvironmentInfo
|
||||
{
|
||||
public class StartupArguments
|
||||
{
|
||||
|
||||
public const string NO_BROWSER = "no-browser";
|
||||
public const string INSTALL_SERVICE = "i";
|
||||
public const string UNINSTALL_SERVICE = "u";
|
||||
public const string HELP = "?";
|
||||
|
||||
public StartupArguments(string[] args)
|
||||
{
|
||||
Flags = new HashSet<string>();
|
||||
|
||||
foreach (var s in args)
|
||||
{
|
||||
var flag = s.Trim(' ', '/', '-').ToLower();
|
||||
Flags.Add(flag);
|
||||
}
|
||||
}
|
||||
|
||||
public HashSet<string> Flags { get; private set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue