Files
Jackett-Jackett/src/Jackett.Common/Models/Config/RuntimeSettings.cs
flightlevel c112aef644 Update ConsoleOptions
Use --version to get version info and --help for help
-v no longer attempts to load Jackett
https://github.com/Jackett/Jackett/issues/3720
2018-08-31 20:33:05 +10:00

52 lines
1.3 KiB
C#

using System;
using System.IO;
namespace Jackett.Common.Models.Config
{
public class RuntimeSettings
{
public bool TracingEnabled { get; set; }
public bool LogRequests { get; set; }
public string ClientOverride { get; set; }
public string ProxyConnection { get; set; }
public bool? IgnoreSslErrors { get; set; }
public string CustomDataFolder { get; set; }
public string BasePath { get; set; }
public bool NoRestart { get; set; }
public string CustomLogFileName { get; set; }
public string PIDFile { get; set; }
public bool NoUpdates { get; set; }
public string DataFolder
{
get
{
if (!string.IsNullOrWhiteSpace(this.CustomDataFolder))
{
return this.CustomDataFolder;
}
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Jackett");
}
else
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Jackett");
}
}
}
}
}