How do I print help for console apps?
Is there an idiomatic way to print out help for console apps? In Powershell, this is really simple, but I can't find a mention of it in MS Docs or the Yellow Book. Googling shows a number of people rolling their own approach over the years. Am I missing an 'official' or at least, best practice, way of printing help for a command line utility?
Posted Sep 12, 2020, 6:36 PM UTC
I think the Command Line Api package is what you want. https://github.com/dotnet/command-line-api
This is how I have used it.
It does! Thank you for pointing me in the right direction.
you are welcome. I have updated my response with my usage pattern. Hopefully it helps.