argh isn’t in the standard library. For a quick script this matters much less than if you’re building something that would stick around but it’s still a downside. It’s also a bit of boilerplate I’d need to look up every time to get started on a script.
In this case the benefit is minimal: slightly better error messages. The better path for improving the script is mildly helpful, but switching once you need something other than mandatory positional arguments is not hard.
I’d argue that using
argh
is just as easy and strictly better:And it’s even easier if you are willing to use commands (which is often useful when you want to extend the script to do more than one thing):
Another reason this is not strictly better, is that for someone reading the source code it’s likely less clear what’s going on.
(But I could imagine I find the module useful at some point.)
argh
isn’t in the standard library. For a quick script this matters much less than if you’re building something that would stick around but it’s still a downside. It’s also a bit of boilerplate I’d need to look up every time to get started on a script.In this case the benefit is minimal: slightly better error messages. The better path for improving the script is mildly helpful, but switching once you need something other than mandatory positional arguments is not hard.