aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-10 21:21:41 -0500
committerGitHub <noreply@github.com>2021-07-10 21:21:41 -0500
commit74646fd90e45ae6d84b95bac8e610e907e3ca202 (patch)
tree639222930d3c613037192e35a86a92c917db5fd2 /src/slskd/Options.cs
parent99be7979e37d4b1f5116077b48e9b87fd82497e0 (diff)
parentd362c74f34476f9f0fc5e4180e18751c028c7658 (diff)
downloadslskd-74646fd90e45ae6d84b95bac8e610e907e3ca202.tar.gz
Merge pull request #118 from slskd/no-start
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")]