Hacker News new | past | comments | ask | show | jobs | submit login

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




https://docs.python.org/3/howto/argparse.html

Python has an argument parser in the standard library


Yes it has, but argparse is not even comparable to [1] Click, or similar libraries.

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


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...”


There you go: https://docs.microsoft.com/en-us/archive/msdn-magazine/2019/...

argparse - or close to it :-)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: