Closed glennc closed 6 years ago
For reference, 173 existed first. Then we added 190 so hosting/kestrel could get them. That said, do we keep this order just because we want them to override the other providers?
Ahh. We add it again so that they will overwrite any other config options even though they are also added first. Right?
I think this was more of an oversight than a conscious decision. I think it makes more sense to remove the command line provider at 173. If the command line args are overwritten, we should preserve that for the application instead of restoring the initial values.
There has been much debate over the precidence of each config source. Also, changing it is potentially breaking.
Closing this. It's just jarring, not necessarily wrong by the sound of it.
In the CreateDefaultBuilder method we appear to add the CommandLine provider twice: