I'm currently working on a program that retrieves sets of data. This is working quite well now but I have to run my program several times for each type of retrieval I have to do.
What I would like to be able to do is specify what types of retrival I would like to do as arguments passed in before the program starts. The problem is that I need my program to be able to handle any number of arguments i.e. from one to infinity.
My question is how could I input all the arguments and how would I get my program to know when the arguments have ended?