How to process this command line plusarg?

In reply to dave_59:

Hi Dave,

I wonder what is special about %%d? I tried to modify the code to


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

and it failed during compilation.

So I’m wondering why %%d works but %0d fails?

Thanks