- cross-posted to:
- [email protected]
- [email protected]
- cross-posted to:
- [email protected]
- [email protected]
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?
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…