title: Splitting a string with double dash as delimiter containing both single & double dash in windows batch
body: <p>This is the piece of code i am working on.</p>
  
  <pre><code>set "comd=aws iam create-group --group-name xxx --user-name yyy"
      for /f "tokens=2,3delims=--" %%a in ("%comd%") do (
         echo %%a 
         echo %%b 
      )
  </code></pre>
  
  <p>i want to take out <code>group-name xxx</code> as one token and <code>user-name yyy</code> as another, but
  when i use <code>--</code> as delimiter it considers string with <code>-</code> also fit to be tokenized so in this case <code>group</code> of <code>create-group</code> is also being considered as separate token.</p>
  
  <p>i want to make this code work for all the occurrences <code>--key value</code>.</p>