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.