From a56d632c01549af144041162763a8dae379b3a92 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 7 Nov 2021 21:06:26 -0600 Subject: remove config option, move AppDir to top level --- src/slskd/Options.cs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 83844551..875b3e69 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -119,13 +119,14 @@ namespace slskd public bool GenerateCertificate { get; private set; } = false; /// - /// Gets the path to the application configuration file. + /// Gets the path where application data is saved. /// - [Argument('c', "config")] - [EnvironmentVariable("CONFIG")] - [Description("path to configuration file")] + [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 ConfigurationFile { get; private set; } = Program.DefaultConfigurationFile; + public string AppDirectory { get; private set; } = Program.DefaultAppDirectory; + /// /// Gets a value indicating whether the application should run in debug mode. @@ -248,16 +249,6 @@ namespace slskd /// public class DirectoriesOptions : IValidatableObject { - /// - /// Gets the path where application data is saved. - /// - [Argument(default, "app")] - [EnvironmentVariable("APP_DIR")] - [Description("path where application data is saved")] - [DirectoryExists] - [RequiresRestart] - public string App { get; private set; } = Program.DefaultAppDirectory; - /// /// Gets the path where incomplete downloads are saved. /// -- cgit v1.2.3