aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-10 16:20:29 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-10 16:20:29 -0500
commitd362c74f34476f9f0fc5e4180e18751c028c7658 (patch)
tree639222930d3c613037192e35a86a92c917db5fd2 /src/slskd/Options.cs
parent99be7979e37d4b1f5116077b48e9b87fd82497e0 (diff)
downloadslskd-d362c74f34476f9f0fc5e4180e18751c028c7658.tar.gz
add 'no-start' option
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 7c697b43..98499fc9 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -86,6 +86,14 @@ namespace slskd
public bool NoLogo { get; private set; } = false;
/// <summary>
+ /// Gets a value indicating whether the application should quit after initialization.
+ /// </summary>
+ [Argument('x', "no-start")]
+ [EnvironmentVariable("NO_START")]
+ [Description("quit the application after initialization")]
+ public bool NoStart { get; private set; } = false;
+
+ /// <summary>
/// Gets the unique name for this instance.
/// </summary>
[Argument('i', "instance-name")]