In previous version (e.g. v6.22) I am able to pass extra arguments to scripts like this:
root myscript.C -d 150
where a warning about “macro 150 not found” will be shown but the program runs fine. In the script I can check the arguments with gApplication->Argv() and process accordingly.
Yes! That is possible if I have only one argument. Unfortunately I may have actually multiple arguments to specify, sth like -a 1 -b 2 -c 3 -d 150, depends on the situation. That’s why I did not use function arguments at the beginning.