- 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
ifblock into the command-line entry point, which instantiates an argument parser and callsmain. Maybe I should move the parsing intomainso it can be tested, but…