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?

  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    8
    ·
    1 day ago

    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.