StartupOptions.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. namespace Emby.Server.Implementations
  2. {
  3. using CommandLine;
  4. /// <summary>
  5. /// Class used by CommandLine package when parsing the command line arguments.
  6. /// </summary>
  7. public class StartupOptions
  8. {
  9. [Option('d', "datadir", Required = false, HelpText = "Path to use for the data folder (databases files etc.).")]
  10. public string PathData { get; set; }
  11. [Option('c', "configdir", Required = false, HelpText = "Path to use for config data (user policies and puctures).")]
  12. public string PathConfig { get; set; }
  13. [Option('l', "logdir", Required = false, HelpText = "Path to use for writing log files.")]
  14. public string PathLog { get; set; }
  15. [Option("ffmpeg", Required = false, HelpText = "Path to external FFmpeg exe to use in place of built-in.")]
  16. public string FFmpeg { get; set; }
  17. [Option("ffprobe", Required = false, HelpText = "ffmpeg and ffprobe switches must be supplied together.")]
  18. public string FFprobe { get; set; }
  19. [Option("service", Required = false, HelpText = "Run as headless service.")]
  20. public bool Service { get; set; }
  21. [Option("noautorunwebapp", Required = false, HelpText = "Run headless if startup wizard is complete.")]
  22. public bool NoAutoRunWebApp { get; set; }
  23. [Option("package-name", Required = false, HelpText = "Used when packaging Jellyfin (example, synology).")]
  24. public string PackageName { get; set; }
  25. [Option("restartpath", Required = false, HelpText = "Path to reset script.")]
  26. public string RestartPath { get; set; }
  27. [Option("restartargs", Required = false, HelpText = "Arguments for restart script.")]
  28. public string RestartArgs { get; set; }
  29. }
  30. }