diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-07 21:06:26 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-11-07 21:06:26 -0600 |
| commit | a56d632c01549af144041162763a8dae379b3a92 (patch) | |
| tree | d77f1d8eff5e5525818ad1f2e7302d12b36184f1 /src | |
| parent | ae2a3e8a72117666cff0c8c181ae02708ea620ca (diff) | |
| download | slskd-a56d632c01549af144041162763a8dae379b3a92.tar.gz | |
remove config option, move AppDir to top level
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 21 |
1 files changed, 6 insertions, 15 deletions
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; /// <summary> - /// Gets the path to the application configuration file. + /// Gets the path where application data is saved. /// </summary> - [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; + /// <summary> /// Gets a value indicating whether the application should run in debug mode. @@ -249,16 +250,6 @@ namespace slskd public class DirectoriesOptions : IValidatableObject { /// <summary> - /// Gets the path where application data is saved. - /// </summary> - [Argument(default, "app")] - [EnvironmentVariable("APP_DIR")] - [Description("path where application data is saved")] - [DirectoryExists] - [RequiresRestart] - public string App { get; private set; } = Program.DefaultAppDirectory; - - /// <summary> /// Gets the path where incomplete downloads are saved. /// </summary> [Argument(default, "incomplete")] |
