Repeat the same option with multipoint

Can I repeat the same option with a multitoken? For example, is it possible from this line:

-t algo1 5 7 9 -t algo2 6 2

      

to get something like the following vector of a vector?

  ___   ___
| ___ | ___ |
   |     |
   v     v
  ___   ___
 algo1 algo2
  ___   ___
   5     6
  ___   ___
   7     2
  ___   ___
   9
  ___

      

I tried:

value<vector<vector<string>>>()->multitoken()

      

but I have:

  ___   ___   ___   ___   ___   ___   ___
| ___ | ___ | ___ | ___ | ___ | ___ | ___ |
   |     |     |     |     |     |     |
   v     v     v     v     v     v     v
  ___   ___   ___   ___   ___   ___   ___
 algo1   5     7     9   algo2   6     2
  ___   ___   ___   ___   ___   ___   ___

      

What can I do?

thank

+3


source to share





All Articles