Javier Gonzalez wrote:
Hi again
I tried what was in the tutorials at the time and the thing was that, let's say I wanted include paths and files, I would have to write the following:
myCommand -I /path1 -I /path2 -f file1 -f file2
(specifying the option for each file and path so it's pushed back into the vector) That is fine, but if I try the following:
myCommand -I /path1 /path2 -f file1 file2
then the parser didn't recognize the 'file' option and the paths vector<string> had all these elements: /path1, /path2, -f, file1, file2
That wa not what I expected. In particular, I wanted to do something like myCommand -I /path1/* -f file*, and ran into the previous problem.
To begin with, what if you have a file starting with "-I" and your command line is : -f file* -I /path1/* What should happen? - Volodya