I already have the arguments parsed, the bit that I’m confused about is where I decide what to do based on those various combinations of arguments.
I’m using Traitlets.
Comment on [help] How to decide what to do with command line parameters?
Raikin@feddit.de 1 year ago
What module are you currently using? I think the built-in module argparse should solve your problem but maybe I’m misunderstanding what you’re asking for.
I already have the arguments parsed, the bit that I’m confused about is where I decide what to do based on those various combinations of arguments.
I’m using Traitlets.
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.Raikin@feddit.de 1 year ago
No worries, this ain’t Stackoverflow ;-)