From 48d569da0e86f1ec0144713c25cad3a5e767c4d2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 26 Jul 2021 20:06:14 -0500 Subject: wip --- src/slskd/Program.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/slskd/Program.cs') 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); } -- cgit v1.2.3