From 25feb7ac2d2beb65a4ff81be2d9ec449e5455546 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 12 Nov 2022 16:02:00 -0600 Subject: add volatile flag, move experimental flag --- src/slskd/Core/Options.cs | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'src/slskd/Core/Options.cs') 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 @@ -150,15 +150,6 @@ namespace slskd [RequiresRestart] public bool Debug { get; init; } = Debugger.IsAttached; - /// - /// Gets a value indicating whether the application should run in experimental mode. - /// - [Argument(default, "experimental")] - [EnvironmentVariable("EXPERIMENTAL")] - [Description("run in experimental mode")] - [RequiresRestart] - public bool Experimental { get; init; } = false; - /// /// Gets a value indicating whether remote configuration of options is allowed. /// @@ -372,6 +363,24 @@ namespace slskd [Description("log SQL queries generated by Entity Framework")] [RequiresRestart] public bool LogSQL { get; init; } = false; + + /// + /// Gets a value indicating whether the application should run in experimental mode. + /// + [Argument(default, "experimental")] + [EnvironmentVariable("EXPERIMENTAL")] + [Description("run in experimental mode")] + [RequiresRestart] + public bool Experimental { get; init; } = false; + + /// + /// Gets a value indicating whether the application should run in volatile mode. + /// + [Argument(default, "volatile")] + [EnvironmentVariable("VOLATILE")] + [Description("use volatile data storage (all data will be lost at shutdown)")] + [RequiresRestart] + public bool Volatile { get; init; } = false; } /// -- cgit v1.2.3