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?
You must log in or register to comment.
Call the function from the if block.
Now your tests can more easily call it.
I think at my last job we did argument parsing in the if block, and passed stuff into the main function.