Assume you have a programme with multiple functions defined. Each function is called in a separate for loop. Is it possible to specify which function should be called via the command line?
Example:
python prog.py -x <<<filname>>>
Where -x tells python to go to a particular for loop and then execute the function called in that for loop?
Thanks,
Seafoid.
You want the
sysmodule.For example:
Which runs
a(filename)if you runpython file.py -a filename