The variable "dataDim" should be declared as:<div><br><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">  vtksys_stl::vector<<span style="color: #c22a9f">int</span>> dataDim;</p><div><br></div>
<div>to work with MULTI_ARGUMENT.</div><div><br></div><div>Is it?</div><div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><br><div class="gmail_quote">On Mon, May 2, 2011 at 8:16 PM, Philippe Pébay <span dir="ltr"><<a href="mailto:pppebay@sandia.gov">pppebay@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I can't get the multi-argument type of argument parsing in kwsys::CommandLineArguments to work.<br>
<br>
Specifically, here is what I am doing:<br>
  args.AddArgument("--data-dim",<br>
                     vtksys::CommandLineArguments::MULTI_ARGUMENT,<br>
                     &dataDim, "Dimensions of the input data");<br>
where dataDim is an array of integers, previously sized with the expected number of arguments.<br>
<br>
What the parser does is to only take the first amongst the list of arguments which I then pass, for example<br>
--data-dim 1 2 3<br>
results in only the "1" being taken into account, the following parameters being ignored.<br>
<br>
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?<br>
<br>
Thanks<br>
Philippe<br>
-- <br>
Philippe Pébay<br>
Sandia National Laboratories<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div></div>