I have a program which can take in a few different arguments, and depending on what the argument is that is passed, that function is called in the python program. I know how to use sys.arv, and I have used argparse before, however I am not sure how to go about accomplishing the following with argparse..
Possible arguments: func1, func2, func3
Program could be executed with either of the following:
python myprogram func1
python myprogram func2
python myprogram func3
Therefore the arg passed correlates to a function in the program. I do not want to include any dashes in the arguments so nothing like -func1 or -func2...etc.
Thank you!