Use CommandLineParser package for handling CLI args
This commit is contained in:
@@ -141,7 +141,7 @@ namespace Emby.Server.Implementations
|
||||
return false;
|
||||
}
|
||||
|
||||
if (StartupOptions.ContainsOption("-service"))
|
||||
if (StartupOptions.Service)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -1747,7 +1747,7 @@ namespace Emby.Server.Implementations
|
||||
EncoderLocationType = MediaEncoder.EncoderLocationType,
|
||||
SystemArchitecture = EnvironmentInfo.SystemArchitecture,
|
||||
SystemUpdateLevel = SystemUpdateLevel,
|
||||
PackageName = StartupOptions.GetOption("-package")
|
||||
PackageName = StartupOptions.PackageName
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user