currently the magic script use fixed ascending index for command line parameters:
https://github.com/efabless/mpw_precheck/blob/main/checks/xor_check/erase_box.tcl#L2-L4
which seems fragile and can cause issue if wrapping the main magic executable in another shell script.
Are we considering relying on https://core.tcl-lang.org/tcllib/doc/tcllib-1-18/embedded/www/tcllib/files/modules/cmdline/cmdline.html or reversing the indexing order so that it's more resistant to changes adding new flag to the magic invocation.