StartupOptions.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using CommandLine;
  2. using Emby.Server.Implementations;
  3. namespace Jellyfin.Server
  4. {
  5. /// <summary>
  6. /// Class used by CommandLine package when parsing the command line arguments.
  7. /// </summary>
  8. public class StartupOptions : IStartupOptions
  9. {
  10. [Option('d', "datadir", Required = false, HelpText = "Path to use for the data folder (database files, etc.).")]
  11. public string DataDir { get; set; }
  12. [Option('C', "cachedir", Required = false, HelpText = "Path to use for caching.")]
  13. public string CacheDir { get; set; }
  14. [Option('c', "configdir", Required = false, HelpText = "Path to use for configuration data (user settings and pictures).")]
  15. public string ConfigDir { get; set; }
  16. [Option('l', "logdir", Required = false, HelpText = "Path to use for writing log files.")]
  17. public string LogDir { get; set; }
  18. [Option("ffmpeg", Required = false, HelpText = "Path to external FFmpeg executable to use in place of default found in PATH. Must be specified along with --ffprobe.")]
  19. public string FFmpegPath { get; set; }
  20. [Option("ffprobe", Required = false, HelpText = "Path to external FFprobe executable to use in place of default found in PATH. Must be specified along with --ffmpeg.")]
  21. public string FFprobePath { get; set; }
  22. [Option("service", Required = false, HelpText = "Run as headless service.")]
  23. public bool IsService { get; set; }
  24. [Option("noautorunwebapp", Required = false, HelpText = "Run headless if startup wizard is complete.")]
  25. public bool NoAutoRunWebApp { get; set; }
  26. [Option("package-name", Required = false, HelpText = "Used when packaging Jellyfin (example, synology).")]
  27. public string PackageName { get; set; }
  28. [Option("restartpath", Required = false, HelpText = "Path to restart script.")]
  29. public string RestartPath { get; set; }
  30. [Option("restartargs", Required = false, HelpText = "Arguments for restart script.")]
  31. public string RestartArgs { get; set; }
  32. }
  33. }