diff options
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 3 |
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); } |
