You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.1 KiB
48 lines
2.1 KiB
5 years ago
|
using CommandLine;
|
||
|
using Emby.Server.Implementations.ParsedStartupOptions;
|
||
5 years ago
|
|
||
5 years ago
|
namespace Jellyfin.Server
|
||
|
{
|
||
5 years ago
|
/// <summary>
|
||
|
/// Class used by CommandLine package when parsing the command line arguments.
|
||
|
/// </summary>
|
||
5 years ago
|
public class StartupOptions : IStartupOptions
|
||
10 years ago
|
{
|
||
5 years ago
|
[Option('d', "datadir", Required = false, HelpText = "Path to use for the data folder (databases files etc.).")]
|
||
5 years ago
|
public string DataDir { get; set; }
|
||
5 years ago
|
|
||
|
[Option('c', "configdir", Required = false, HelpText = "Path to use for config data (user policies and puctures).")]
|
||
5 years ago
|
public string ConfigDir { get; set; }
|
||
5 years ago
|
|
||
|
[Option('l', "logdir", Required = false, HelpText = "Path to use for writing log files.")]
|
||
5 years ago
|
public string LogDir { get; set; }
|
||
5 years ago
|
|
||
|
[Option("ffmpeg", Required = false, HelpText = "Path to external FFmpeg exe to use in place of built-in.")]
|
||
5 years ago
|
public string FFmpegPath { get; set; }
|
||
5 years ago
|
|
||
|
[Option("ffprobe", Required = false, HelpText = "ffmpeg and ffprobe switches must be supplied together.")]
|
||
5 years ago
|
public string FFprobePath { get; set; }
|
||
5 years ago
|
|
||
|
[Option("service", Required = false, HelpText = "Run as headless service.")]
|
||
5 years ago
|
public bool IsService { get; set; }
|
||
8 years ago
|
|
||
5 years ago
|
[Option("noautorunwebapp", Required = false, HelpText = "Run headless if startup wizard is complete.")]
|
||
5 years ago
|
public bool AutoRunWebApp { get => !NoautoRunWebApp; set => NoautoRunWebApp = value; }
|
||
10 years ago
|
|
||
5 years ago
|
[Option("package-name", Required = false, HelpText = "Used when packaging Jellyfin (example, synology).")]
|
||
|
public string PackageName { get; set; }
|
||
10 years ago
|
|
||
5 years ago
|
[Option("restartpath", Required = false, HelpText = "Path to reset script.")]
|
||
|
public string RestartPath { get; set; }
|
||
10 years ago
|
|
||
5 years ago
|
[Option("restartargs", Required = false, HelpText = "Arguments for restart script.")]
|
||
|
public string RestartArgs { get; set; }
|
||
5 years ago
|
|
||
|
/// <summary>
|
||
|
/// Gets or sets a value indicating whether to run not run the web app.
|
||
|
/// Command line switch is --noautorunwebapp, which we store privately here, but provide inverse (AutoRunWebApp) for users.
|
||
|
/// </summary>
|
||
|
private bool NoautoRunWebApp { get; set; }
|
||
10 years ago
|
}
|
||
5 years ago
|
}
|