Somewhat dusty, but new to me. How Guido von Rossum, Python’s Benevolent Dictator for Life, writes main() functions. GvR discusses how to neatly and flexibly handle argv, exit codes, and usage errors. The discussion is worth reading as well.
© 2008-2025 C. Ross Jam.
Licensed under CC
BY-NC-SA
4.0 Built using Pelican. Theme based upon Giulio
Fidente’s original svbhack,
and slightly
modified
by crossjam.