maphew

Wanted: dead simple argparse examples

The standard documentation for the argparse python module, while excellent I'm sure, is too much for my tiny brain to grasp. I don't need to do math on the command line or meddle with formatting lines on the screen or change option characters. All I want to do is "if arg is A, do this, if B do that, if none of the above show help and quit"

I'm not the only one. Simple argparse example wanted: 1 argument, 3 results is my most popular Stack Overflow question. It's over 300% more popular than my next highest question. 2021-09-08


date: 2021-09-08
tags: [itches]
category: Itches