diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-23 11:13:53 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-12-23 11:13:53 -0600 |
| commit | 85c3e904d852debdd6424e180630fcdfaf0b3336 (patch) | |
| tree | f2c1bc8491332b4300bbdff0b5cd0ba973aab867 | |
| parent | 4457645c86a6002a82792639fe50ba3da4b9234d (diff) | |
| download | slskd-85c3e904d852debdd6424e180630fcdfaf0b3336.tar.gz | |
add config options for documentation
| -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] |
