Comment on [help] How to decide what to do with command line parameters?
liquid_buffalo@lemmy.world 1 year ago
Python has a builtin argparse module. You should use that. It does all of the heavy lifting and logic for you.
Comment on [help] How to decide what to do with command line parameters?
liquid_buffalo@lemmy.world 1 year ago
Python has a builtin argparse module. You should use that. It does all of the heavy lifting and logic for you.
bloopernova@programming.dev 1 year ago
I was doing it wrong. I was trying to do
appname thing --action
when I should have been doingappname action --thing
. Thank you for commenting, I’m sorry to waste your time.