I want to give command line inputs to my script. which has input arguments as :
- my script.py
- mode name (which is id)
- id numbers ( passed by ',' separations
first command, in which I would pass multiple ids through command line
myscript.py id id1,id2,id3...
second command, where I would a '-f' flag at the end which denotes force and it must do that operation.
myscript.py id 123,21,1,900 -f
My question is, how should I read in and use these arguments in the script? Thank you !