spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
9.45k stars 499 forks source link

Bugs possibly related to command branches #428

Closed jdvor closed 8 months ago

jdvor commented 3 years ago

I think I've found at least 2 bugs possibly related to command branches. Here's repo with the example. It's using Spectre.Console 0.39.0.

willyt150 commented 3 years ago

Thank you very much for your example as a workaround for the Dependency Injection trying to use the TypeRegistrar and TypeResolver for the command's settings!

If this is working as intended, could we get the documentation to include the need to add the command setting to the DI provider?

FrankRay78 commented 10 months ago

Hello @jdvor, spectre.console just shipped version 0.48 - do you know if the above is still an issue in this version?

pisethdanh commented 8 months ago

Hello @FrankRay78, CommandArgument seems to work as per this documentation.

However, CommandOption doesn't seem to be parsed correctly. I am seeing the same issue as OP.

patriksvensson commented 8 months ago

This bug has been fixed and will appear in 0.49.