News for hackers. Stuff that matters.
Re:Tools I use: argparse builder by mixmastamyk on Thursday October 08, 2020 @10:56AM (#24719634)
Neat. The way I solved this about a decade ago is to create a base template script for my editor. When I hit Ctrl-N a new main script opens with heading, main(), status code return, CLI parsing, and basic logging set up already.

New argparse params are either uncommented and/or cut and pasted from existing ones. It works pretty well.

Re:Tools I use: argparse builder by nvusuvu on Thursday October 08, 2020 @01:17PM (#24721374)
That's way cool. What editor do you pull this magic out of?
Re:Tools I use: argparse builder by mixmastamyk on Thursday October 08, 2020 @02:24PM (#24722107)
Geany, but I don't think it is unique functionality. I suppose you could just copy from a read-only template file with any OS or tools.

Now that I look closer, I actually have to use the File menu, it doesn't have a default shortcut assigned.