- cross-posted to:
- programmer_humor@programming.dev
- programmerhumor@lemmy.ml
- cross-posted to:
- programmer_humor@programming.dev
- programmerhumor@lemmy.ml
Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?
I usually make the
if
block into the command-line entry point, which instantiates an argument parser and callsmain
. Maybe I should move the parsing intomain
so it can be tested, but…