-
Notifications
You must be signed in to change notification settings - Fork 5k
CommandLine & Json Config #36542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
having the same issue here, from what I've seen so far if you do -names[0] d -names[1] e -names[2] f then it will work but that's a pretty terrible experience and doesn't work at all for my use case since I need to use switchmappings for this as well |
I don't believe that this is something that is possible right now. Adding to the backlog to consider later. |
This is part of a broader category of issues related to array representation in Config. It's not likely to be something we can change significantly without a major redesign. Transferring to the appropriate repo and putting in the Future milestone though. |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
How can I use command line arguments override JSON array config section?
I tried as below, but it doesn't work well.
JSON
{ "names": ["a","b","c","d"] }
Command args
app.exe -names d,e,f
Code
configuration["names"]
can get right value from command args.Code
configuration['names'].GetChildren().Select(p=>p.Value)
returns"a","b","c","d"
Could anyone help me?
The text was updated successfully, but these errors were encountered: