<p>I've made all this attempts in <code>det_main.cpp</code>, not it matters. Added this, as pointed out:</p>

<pre><code>PARAM_VECTOR_IN(size_t, "ignore_dimensions", "The indices of dimensions to be ignored "
    "on split attempts.", "n");
</code></pre>

<p>Then tried to obtain the value like this:</p>

<pre><code>std::vector&lt;size_t&gt; ignoreDims = CLI::GetParam&lt;std::vector&lt;size_t&gt;&gt;("ignore_dimensions");
</code></pre>

<p>Gives these arguments: <code>-n 2 3</code> and checking the <code>ignoreDims</code>'s value (in the debugger), it shows a vector with only one element - 2. (Yes, I've built MLPack with DEBUG=ON).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/issues/798#issuecomment-252079620">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFBUwBAZ8GgBY3xw6ti7LskcSGA8xks5qxVqTgaJpZM4KPB4l">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOv6NhF5T7asFMndOaR3Wdj8aDm2ks5qxVqTgaJpZM4KPB4l.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/798#issuecomment-252079620"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mlpack/mlpack","title":"mlpack/mlpack","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/mlpack/mlpack"}},"updates":{"snippets":[{"icon":"PERSON","message":"@thejonan in #798: I've made all this attempts in `det_main.cpp`, not it matters. Added this, as pointed out:\r\n```\r\nPARAM_VECTOR_IN(size_t, \"ignore_dimensions\", \"The indices of dimensions to be ignored \"\r\n    \"on split attempts.\", \"n\");\r\n```\r\n\r\nThen tried to obtain the value like this:\r\n```\r\nstd::vector\u003csize_t\u003e ignoreDims = CLI::GetParam\u003cstd::vector\u003csize_t\u003e\u003e(\"ignore_dimensions\");\r\n```\r\n\r\nGives these arguments: `-n 2 3` and checking the `ignoreDims`'s value (in the debugger), it shows a vector with only one element - 2. (Yes, I've built MLPack with DEBUG=ON)."}],"action":{"name":"View Issue","url":"https://github.com/mlpack/mlpack/issues/798#issuecomment-252079620"}}}</script>