dotnet / dotnet/command-line-api

Integration with Microsoft.Extensions.Configuration.Commandline?

Open
#572 2 comments 19 reactions 0 assignees View on GitHub
Area-Hosting and DI
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

The `Microsoft.Extensions.Configuration.Commandline` extension populates app configuration from command line arguments. However it has no support for things like validation or displaying help to the user. Is there a chance this tool can be integrated, so that if you enable command line config using `config.AddCommandLine(args)`, it will validate the arguments based on the shape of `MyOptions`, and also display help if the user runs `my.exe --help`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.