Here are two little bugs we regularly face with getARGV and which should be easy to fix.
1/ default values for real variables.
real toto = getARGV(’-toto’,1) -> creates a bug
real toto = getARGV(’-toto’, 1.) -> works correctly.
2/ multiple inclusions of getARGV.
I have seen that some idp files contain the line 'include “getARGV.idp” ', for instance macros_ddm.idp.
This can cause a bug very difficult to track if one’s code also contains this line. Especially because the bug is not present on all systems (one of my students has this behaviour with his ubuntu18 laptop, i don’t have it on my mac)
Suggested solution : add at the top of getARGV.idp something like
macro USEGETARGV 1 //
(… content of getARGV.idp …)