3 ms·
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 pyth
by nightski 6y ago
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
- switch007 6y agohttps://docs.python.org/3/howto/argparse.html https://docs.python.org/3/howto/argparse.html Python has an argument parser in the standard library
- watermelon0 6y agoYes it has, but argparse is not even comparable to [1] Click, or similar libraries. [1] https://click.palletsprojects.com/en/7.x/ https://click.palletsprojects.com/en/7.x/
- switch007 6y agoYes but I was responding to the “have to” in: “...a command line option parser which you'd have to pull into a python project...”
- oblio 6y agoThere you go: https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/march/net-parse-the-command-line-with-system-commandline https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/... argparse - or close to it :-)