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?

  • Balthazar@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    5 days ago

    I usually make the if block into the command-line entry point, which instantiates an argument parser and calls main. Maybe I should move the parsing into main so it can be tested, but…