Args file: --args-file=options.txt
ROSS new –args-file argument allows us to pass some arguments in a file.
Instead of doing:
1
mpirun -np 3 my-bin --synch=3 --argument-1=val --argument-2=val --argument-3=val --argument-4=val --argument-5=val
It is now possible to do:
1
mpirun -np 3 my-bin --synch=3 --args-file=path-to-file.txt
where path-to-file.txt
contains:
--argument-1=val
--argument-2=val
--argument-3=val
--argument-4=val
--argument-5=val
Additionally, we can add comments in the file!
# you can have comments in the args-file
--argument-1=val
--argument-2=val # comments can come after an argument
--argument-3=val
# We can also have extra empty lines and we can have multiple arguments in a line
--argument-4=val --argument-5=val
# BUT
# --argument-6="this is invalid" # quotes around values DO NOT work!
# which means that special characters (as in many unicode characters) might not
be properly handled