diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-12 16:02:00 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-12 16:02:00 -0600 |
| commit | 25feb7ac2d2beb65a4ff81be2d9ec449e5455546 (patch) | |
| tree | 3f66f7729b7013067a57d5f108ea908de53770bf /src/slskd/Core | |
| parent | a4070ccf1bdb21ad139270fc1d649f93c7fc41a9 (diff) | |
| download | slskd-25feb7ac2d2beb65a4ff81be2d9ec449e5455546.tar.gz | |
add volatile flag, move experimental flag
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index e273229f..a64d5875 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -151,15 +151,6 @@ namespace slskd public bool Debug { get; init; } = Debugger.IsAttached; /// <summary> - /// Gets a value indicating whether the application should run in experimental mode. - /// </summary> - [Argument(default, "experimental")] - [EnvironmentVariable("EXPERIMENTAL")] - [Description("run in experimental mode")] - [RequiresRestart] - public bool Experimental { get; init; } = false; - - /// <summary> /// Gets a value indicating whether remote configuration of options is allowed. /// </summary> [Argument(default, "remote-configuration")] @@ -372,6 +363,24 @@ namespace slskd [Description("log SQL queries generated by Entity Framework")] [RequiresRestart] public bool LogSQL { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether the application should run in experimental mode. + /// </summary> + [Argument(default, "experimental")] + [EnvironmentVariable("EXPERIMENTAL")] + [Description("run in experimental mode")] + [RequiresRestart] + public bool Experimental { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether the application should run in volatile mode. + /// </summary> + [Argument(default, "volatile")] + [EnvironmentVariable("VOLATILE")] + [Description("use volatile data storage (all data will be lost at shutdown)")] + [RequiresRestart] + public bool Volatile { get; init; } = false; } /// <summary> |
