[vtk-developers] vtksys::CommandLineArguments::MULTI_ARGUMENT

Philippe Pébay pppebay at sandia.gov
Mon May 2 20:16:49 EDT 2011


Hello,

I can't get the multi-argument type of argument parsing in kwsys::CommandLineArguments to work.

Specifically, here is what I am doing:
   args.AddArgument("--data-dim",
                      vtksys::CommandLineArguments::MULTI_ARGUMENT,
                      &dataDim, "Dimensions of the input data");
where dataDim is an array of integers, previously sized with the expected number of arguments.

What the parser does is to only take the first amongst the list of arguments which I then pass, for example
--data-dim 1 2 3
results in only the "1" being taken into account, the following parameters being ignored.

It does not seem that there is a single example using the MULTI_ARGUMENT case in the entire VTK. Does anyone know how to 
use it?

Thanks
Philippe
-- 
Philippe Pébay
Sandia National Laboratories





More information about the vtk-developers mailing list