Accept single-hyphen usage and rename -programdatadir to -datadir

For backwards compatibility, modify the args[] strings to replace single-hyphens with double-hyphens before parsing.

Also rename -programdatadir to -datadir.
This commit is contained in:
PloughPuff
2019-01-28 14:51:31 +00:00
committed by Bond-009
parent fd361421b1
commit ebd2a30087
2 changed files with 17 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ namespace Emby.Server.Implementations
/// </summary>
public class StartupOptions
{
[Option('d', "programdata", Required = false, HelpText = "Path to use for program data (databases files etc.).")]
public string PathProgramData { get; set; }
[Option('d', "datadir", Required = false, HelpText = "Path to use for the data folder (databases files etc.).")]
public string PathData { get; set; }
[Option('c', "configdir", Required = false, HelpText = "Path to use for config data (user policies and puctures).")]
public string PathConfig { get; set; }