I haven’t actually tried this raw approach. I guess the issue here is that
"hello" is interpreted according to the scheme of how you set script parameters from the command line:
"varname1=value,varname2=value". If that’s the case,
hello is not a variable that you define in your Groovy script.
That said, the following scripts works for me
#@ String hello
when executed with that call
$ ./ImageJ-linux64 --ij2 --headless --run TestArgs.groovy "hello='something'"
What exactly are you trying to pass from the command line? Would it be possible to use script parameters? If not, we should work on improvements to script parameters to enable your use case!