I want to invoke Jython scripts from command line, p.e.
$ /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --headless little_jython_script.py
I know about Python's (and therefore Jython's) capability to take parameters by
import sys
params = sys.argv[1:]
and then calling the script with something like
$ /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --headless jython_script_with_params.py param1 param2 param3
.
However, according to to the ImageJ webpage http://imagej.net/Script_parameters it is also possible to code the use of parameters in Jython similar to the Greeting.py example from that website
# @String name
# A Jython script with parameters.
# It is the duty of the scripting framework to harvest
# the 'name' parameter from the user, and then display
# the 'greeting' output parameter, based on its type.
print "Hello, " + name + "!"
The questions is: How do I specify the parameter name
in a command line call $/Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --headless Helloworld.py
?