2020-03-03 16:28:26 +00:00
|
|
|
using CommandLine;
|
2015-11-09 21:59:16 +00:00
|
|
|
|
|
|
|
namespace Jackett.Updater
|
|
|
|
{
|
|
|
|
public class UpdaterConsoleOptions
|
|
|
|
{
|
2017-11-13 08:38:38 +00:00
|
|
|
[Option('p', "Path", HelpText = "Install location", Required = true)]
|
2015-11-09 21:59:16 +00:00
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
[Option('t', "Type", HelpText = "Install type")]
|
2017-04-15 08:45:10 +00:00
|
|
|
public string Type { get; set; }
|
|
|
|
|
2015-11-09 21:59:16 +00:00
|
|
|
[Option('a', "Args", HelpText = "Launch arguments")]
|
|
|
|
public string Args { get; set; }
|
2017-01-20 12:50:23 +00:00
|
|
|
|
2017-11-14 19:21:40 +00:00
|
|
|
[Option("NoRestart", HelpText = "Don't restart after update")]
|
2017-01-20 12:50:23 +00:00
|
|
|
public bool NoRestart { get; set; }
|
|
|
|
|
2017-11-14 19:21:40 +00:00
|
|
|
[Option("KillPids", HelpText = "PIDs which will be killed before (Windows) or after (Unix) the update")]
|
2017-01-20 12:50:23 +00:00
|
|
|
public string KillPids { get; set; }
|
2018-06-24 01:31:08 +00:00
|
|
|
|
|
|
|
[Option("StartTray", HelpText = "Indicates that the updater should start the tray icon")]
|
|
|
|
public bool StartTray { get; set; }
|
2015-11-09 21:59:16 +00:00
|
|
|
}
|
|
|
|
}
|