News for hackers. Stuff that matters.
Re:My preferred .NET console stack by nightski on Friday January 15, 2021 @11:59AM (#25793023)
Who said you have to? In fact you don't at all. He's only pulling in 5 dependencies. One is a command line option parser which you'd have to pull into a python project as well. The second is a bridge for that parser to integrate with the dependency injection - which you arguably may or may not need. Third & Fourth are for logging. The last one is completely unnecessary and can be ignored. Again it's just his way of doing things.

But lets not create this false narrative that somehow .NET has become super complex. Anyone can create a console application with -

dotnet new console -n TestConsoleApp

Re:My preferred .NET console stack by switch007 on Friday January 15, 2021 @12:01PM (#25793074)
https://docs.python.org/3/howto/argparse.html

Python has an argument parser in the standard library

Re:My preferred .NET console stack by watermelon0 on Friday January 15, 2021 @12:17PM (#25793308)
Yes it has, but argparse is not even comparable to [1] Click, or similar libraries.

[1] https://click.palletsprojects.com/en/7.x/

Re:My preferred .NET console stack by switch007 on Friday January 15, 2021 @12:26PM (#25793407)
Yes but I was responding to the “have to” in: “...a command line option parser which you'd have to pull into a python project...”
Re:My preferred .NET console stack by oblio on Friday January 15, 2021 @01:18PM (#25794095)
There you go: https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/...

argparse - or close to it :-)