• Redscare867@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    You should check out Click. Way more user friendly than argparse imo. I agree with all of your points though, and I’d also add if you are working on a team that it will be infinitely easier for a co-worker to decipher your python code compared to a bash script. And you can write unit tests with py test, the list goes on and on. If the environment you are deploying to has the python interpreter, you should use python over bash.

    • Dandroid@dandroid.app
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’ll take a look at Click. Something better than argparse definitely piques my interest, because while the features are great, it feels a little cumbersome at times.