From dceadccf469009f9d4f9faba22acca68e8d918e8 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 12 Jul 2021 20:41:21 -0500 Subject: mark some options as RequiresRestart --- src/slskd/Options.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 7e4880c6..2ff0df97 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -23,6 +23,7 @@ namespace slskd using System.ComponentModel.DataAnnotations; using System.Diagnostics; using FluentFTP; + using slskd.Configuration; using slskd.Validation; using Soulseek.Diagnostics; using Utility.CommandLine; @@ -38,6 +39,7 @@ namespace slskd /// [Argument('v', "version")] [Description("display version information")] + [Obsolete("Used only for documentation; see Program for actual implementation")] public bool ShowVersion { get; private set; } = false; /// @@ -45,6 +47,7 @@ namespace slskd /// [Argument('h', "help")] [Description("display command line usage")] + [Obsolete("Used only for documentation; see Program for actual implementation")] public bool ShowHelp { get; private set; } = false; /// @@ -52,6 +55,7 @@ namespace slskd /// [Argument('e', "envars")] [Description("display environment variables")] + [Obsolete("Used only for documentation; see Program for actual implementation")] public bool ShowEnvironmentVariables { get; private set; } = false; /// @@ -59,6 +63,7 @@ namespace slskd /// [Argument('g', "generate-cert")] [Description("generate X509 certificate and password for HTTPs")] + [Obsolete("Used only for documentation; see Program for actual implementation")] public bool GenerateCertificate { get; private set; } = false; /// @@ -67,6 +72,7 @@ namespace slskd [Argument('c', "config")] [EnvironmentVariable("CONFIG")] [Description("path to configuration file")] + [Obsolete("Used only for documentation; see Program for actual implementation")] public string ConfigurationFile { get; private set; } = Program.DefaultConfigurationFile; /// @@ -75,6 +81,7 @@ namespace slskd [Argument('d', "debug")] [EnvironmentVariable("DEBUG")] [Description("run in debug mode")] + [RequiresRestart] public bool Debug { get; private set; } = Debugger.IsAttached; /// @@ -83,6 +90,7 @@ namespace slskd [Argument('n', "no-logo")] [EnvironmentVariable("NO_LOGO")] [Description("suppress logo on startup")] + [RequiresRestart] public bool NoLogo { get; private set; } = false; /// @@ -91,6 +99,7 @@ namespace slskd [Argument('x', "no-start")] [EnvironmentVariable("NO_START")] [Description("quit the application after initialization")] + [RequiresRestart] public bool NoStart { get; private set; } = false; /// @@ -99,6 +108,7 @@ namespace slskd [Argument('i', "instance-name")] [EnvironmentVariable("INSTANCE_NAME")] [Description("optional; a unique name for this instance")] + [RequiresRestart] public string InstanceName { get; private set; } = "default"; /// -- cgit v1.2.3