Repository navigation
Remove dotnet-format option parsing and have them pass-through. - #25541
Conversation
|
While this will address the out-of-sync issue reported in dotnet/format#1479, you'll lose the built-in tab-completion support that having the parser inside the SDK CLI provides. You can still get there if users have configured the An alternative - if you export a System.CommandLine command then we could simply mount that command in the SDK, like we do for the template engine (which provides the entire |
|
If you do move forward with removing the native parser, you'll also want to add a switch case to this Help writer method to delegate to your help command, so that users get useful help output. |
@baronfel I've discussed this before with Jon and we believe in the short-term this is the way to go. Ideally System.CommandLine will be imbued with some way to forward suggestion requests in a way that we can share a single command configuration. |
|
Fair enough. If your app supports the |
as @JoeRobich says, the insane complexity that this introduces is simply not worth it. |
This resolves several issues where the dotnet CLI is parsing arguments differently than dotnet-format.