diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-23 11:29:23 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-23 11:29:23 -0600 |
| commit | 1b9d18c6921eefa45cde30aeab059287c19fd90d (patch) | |
| tree | b27495e41cc50ebd3add395ca607799221e5709c /src/slskd/Options.cs | |
| parent | c27440546df6b27d360b3e8981989810d7582249 (diff) | |
| parent | 511f59485bed3b29aa8b7b1c232fc042f406cddb (diff) | |
| download | slskd-1b9d18c6921eefa45cde30aeab059287c19fd90d.tar.gz | |
Merge pull request #315 from slskd/bugfix
Fix bug causing configuration location to be ignored
Diffstat (limited to 'src/slskd/Options.cs')
| -rw-r--r-- | src/slskd/Options.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index ba37f1b8..8ddc4c7f 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -210,6 +210,17 @@ namespace slskd public string AppDirectory { get; init; } = Program.DefaultAppDirectory; /// <summary> + /// Gets the path where application data is saved. + /// </summary> + [Argument('c', "config")] + [EnvironmentVariable("CONFIG")] + [Description("path to configuration file")] + [Obsolete("Used only for documentation; see Program for actual implementation")] + [JsonIgnore] + [YamlIgnore] + public string ConfigurationFile { get; init; } = Program.DefaultConfigurationFile; + + /// <summary> /// Gets directory options. /// </summary> [Validate] |
