aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-16 23:36:50 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-16 23:36:50 -0500
commit2ebcc6f312d337d1bb4412b41781a973fb253aed (patch)
treed4d6dd89af90d005c4c9db4ee1232c2e5a969733 /src/slskd/Program.cs
parentd6434c02da80e499a357954f685ffedef49b4d66 (diff)
downloadslskd-2ebcc6f312d337d1bb4412b41781a973fb253aed.tar.gz
show friendly name of option types
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index d70b50c1..f7d3fd66 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -408,7 +408,7 @@ namespace slskd
private static void PrintCommandLineArguments(Type targetType)
{
static string GetLongName(string longName, Type type)
- => type == typeof(bool) ? longName : $"{longName} <{type.Name.ToLowerInvariant()}>";
+ => type == typeof(bool) ? longName : $"{longName} <{type.ToColloquialString().ToLowerInvariant()}>";
var lines = new List<(string Item, string Description)>();
@@ -456,7 +456,7 @@ namespace slskd
private static void PrintEnvironmentVariables(Type targetType, string prefix)
{
- static string GetName(string name, Type type) => $"{name} <{type.Name.ToLowerInvariant()}>";
+ static string GetName(string name, Type type) => $"{name} <{type.ToColloquialString().ToLowerInvariant()}>";
var lines = new List<(string Item, string Description)>();