aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-26 20:06:14 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-26 20:06:14 -0500
commit48d569da0e86f1ec0144713c25cad3a5e767c4d2 (patch)
treeee032d30dcb27c1662c281a594d3fa82c24c49f0 /src/slskd/Program.cs
parent22e4e494b0baeb1983057f0b89dd03f97dfcdfc0 (diff)
downloadslskd-48d569da0e86f1ec0144713c25cad3a5e767c4d2.tar.gz
wip
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 9447bb7f..a458d0ca 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -335,6 +335,8 @@ namespace slskd
{
configurationFile = Path.GetFullPath(configurationFile);
+ // todo: write some code here to fetch any properties in options marked with `Attribute` and backed by an array. stuff those arguments into a list for multiValuedArgumetns
+
return builder
.AddDefaultValues(
targetType: typeof(Options))
@@ -349,6 +351,7 @@ namespace slskd
provider: new PhysicalFileProvider(Path.GetDirectoryName(configurationFile), ExclusionFilters.None)) // required for locations outside of the app directory
.AddCommandLine(
targetType: typeof(Options),
+ multiValuedArguments: new[] { "t", "list", "list-of-ints" },
commandLine: Environment.CommandLine);
}