How to process this command line plusarg?

In reply to 1978bubun:

You can do

foreach (my_arg[i]) void'($value$plusargs($sformatf("my_arg_%0d=%%d",i), my_arg[i]));