Explore >> Select a destination


You are here

me.micahrl.com
| | dusty.phillips.codes
8.5 parsecs away

Travel
| | I really appreciate Python's pathlib module for managing filesystem stuff. While I don't love the argparse module for command line parsing, I don't think it's worse than other available options. I usually choose it for my CLI scripts, since nothing else is good enough to overcome the inertia of using a third party library. Not many people seem to be aware that the two can very easily be combined such that argparse will return Path objects instead of strings that need to be adapted after you query them:
| | pythontest.com
10.6 parsecs away

Travel
| | I was asked recently about how to test the argument parsing bit of an application that used argparse. argparse is a built in Python library for dealing with parsing command line arguments for command line interfaces, CLI's. You know, like git clone . git is the application. is a command line argument. clone is a sub-command. Well, that might be a bad example, as I'm not going to use subcommands in my example, but lots of this still applies, even if you are using subcommands.
| | 0x00.cl
10.3 parsecs away

Travel
| | Tomas Gutierrez L. personal website (0x00)
| | michaelscodingspot.com
73.2 parsecs away

Travel
| Michael Shpilt's Blog on .NET software development, C#, performance, debugging, and programming productivity