aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-23 14:05:19 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-01-23 14:05:19 -0600
commite307407620d841cb68feab9e0cbf47533d4bfa89 (patch)
treed9479ff74622f200931bf9ea8961248abcb808b5
parente9108aa3e747cd5798a4768e7cf9c5aa65d53395 (diff)
downloadslskd-e307407620d841cb68feab9e0cbf47533d4bfa89.tar.gz
add flag to display envars
-rw-r--r--src/slskd/Configuration.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/slskd/Configuration.cs b/src/slskd/Configuration.cs
index da7ccf48..c09896a5 100644
--- a/src/slskd/Configuration.cs
+++ b/src/slskd/Configuration.cs
@@ -28,7 +28,14 @@
EnvironmentVariable: null,
Type: typeof(bool),
Key: null,
- Description: "print usage"),
+ Description: "display command line usage"),
+ new(
+ ShortName: 'e',
+ LongName: "envars",
+ EnvironmentVariable: null,
+ Type: typeof(bool),
+ Key: null,
+ Description: "display environment variables"),
new(
ShortName: 'd',
LongName: "debug",
@@ -122,10 +129,8 @@
Description: "the password for the Soulseek network")
};
- public class slskd
+ public class Program
{
- public bool ShowHelp { get; private set; } = false;
- public bool ShowVersion { get; private set; } = false;
public bool Debug { get; private set; } = false;
public bool NoLogo { get; private set; } = false;
public bool NoAuth { get; private set; } = false;