<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Thanks David. That's exactly it.<br>
<br>
Philippe<br>
<div><br>
<div class="BodyFragment"><font size="2">
<div class="PlainText">--<br>
Philippe Pébay<br>
Sandia National Laboratories<br>
</div>
</font></div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF502665"><font color="#000000" face="Tahoma" size="2"><b>From:</b> David Cole [david.cole@kitware.com]<br>
<b>Sent:</b> Tuesday, May 03, 2011 3:14 AM<br>
<b>To:</b> Pebay, Philippe P<br>
<b>Cc:</b> vtk-developers@vtk.org<br>
<b>Subject:</b> Re: [vtk-developers] vtksys::CommandLineArguments::MULTI_ARGUMENT<br>
</font><br>
</div>
<div></div>
<div>The variable "dataDim" should be declared as:
<div><br>
<div>
<p style="margin: 0px; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
vtksys_stl::vector<<span style="color: rgb(194, 42, 159);">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" target="_blank">pppebay@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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>
</div>
</div>
</div>
</body>
</html>