aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-08 18:56:26 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-08 18:56:26 -0600
commit7d936c12da1587961c22caf5dded805bcbba53de (patch)
tree1b49aa2e41a2d00164f373585798f4d9f486bf3d /src/slskd/Options.cs
parentd0ef56835155e0c93393eee660297cddfb3f9cca (diff)
downloadslskd-7d936c12da1587961c22caf5dded805bcbba53de.tar.gz
tweak options for yaml compatibility
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 875b3e69..71c341e9 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -34,6 +34,7 @@ namespace slskd
using Soulseek.Diagnostics;
using Utility.CommandLine;
using Utility.EnvironmentVariables;
+ using YamlDotNet.Serialization;
/// <summary>
/// Disambiguates options derived at startup from options that may update at run time.
@@ -92,6 +93,7 @@ namespace slskd
[Argument('v', "version")]
[Description("display version information")]
[Obsolete("Used only for documentation; see Program for actual implementation")]
+ [YamlIgnore]
public bool ShowVersion { get; private set; } = false;
/// <summary>
@@ -100,6 +102,7 @@ namespace slskd
[Argument('h', "help")]
[Description("display command line usage")]
[Obsolete("Used only for documentation; see Program for actual implementation")]
+ [YamlIgnore]
public bool ShowHelp { get; private set; } = false;
/// <summary>
@@ -108,6 +111,7 @@ namespace slskd
[Argument('e', "envars")]
[Description("display environment variables")]
[Obsolete("Used only for documentation; see Program for actual implementation")]
+ [YamlIgnore]
public bool ShowEnvironmentVariables { get; private set; } = false;
/// <summary>
@@ -116,19 +120,10 @@ namespace slskd
[Argument('g', "generate-cert")]
[Description("generate X509 certificate and password for HTTPs")]
[Obsolete("Used only for documentation; see Program for actual implementation")]
+ [YamlIgnore]
public bool GenerateCertificate { get; private set; } = false;
/// <summary>
- /// Gets the path where application data is saved.
- /// </summary>
- [Argument(default, "appdir")]
- [EnvironmentVariable("APP_DIR")]
- [Description("path where application data is saved")]
- [Obsolete("Used only for documentation; see Program for actual implementation")]
- public string AppDirectory { get; private set; } = Program.DefaultAppDirectory;
-
-
- /// <summary>
/// Gets a value indicating whether the application should run in debug mode.
/// </summary>
[Argument('d', "debug")]
@@ -192,6 +187,16 @@ namespace slskd
public string InstanceName { get; private set; } = "default";
/// <summary>
+ /// Gets the path where application data is saved.
+ /// </summary>
+ [Argument(default, "app")]
+ [EnvironmentVariable("APP_DIR")]
+ [Description("path where application data is saved")]
+ [Obsolete("Used only for documentation; see Program for actual implementation")]
+ [YamlIgnore]
+ public string AppDirectory { get; private set; } = Program.DefaultAppDirectory;
+
+ /// <summary>
/// Gets directory options.
/// </summary>
[Validate]
@@ -828,7 +833,7 @@ namespace slskd
/// Gets FTP options.
/// </summary>
[Validate]
- public FTPOptions FTP { get; private set; } = new FTPOptions();
+ public FtpOptions Ftp { get; private set; } = new FtpOptions();
/// <summary>
/// Gets Pushbullet options.
@@ -839,7 +844,7 @@ namespace slskd
/// <summary>
/// FTP options.
/// </summary>
- public class FTPOptions : IValidatableObject
+ public class FtpOptions : IValidatableObject
{
/// <summary>
/// Gets a value indicating whether the FTP integration is enabled.