(Quick Reference)

5.6.8 Startup Arguments - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

5.6.8 Startup Arguments

Command line arguments can be passed to the application and be accessed by calling getStartupArgs() on the application instance. This will return a copy of the args (if any) defined at the command line.

Here's a typical example of this feature in development mode

griffon run-app arg0 arg1 argn

Here's another example demonstrating that the feature can be used once the application has been packaged, in this case as a single jar

griffon dev package jar
java -jar dist/jars/app.jar arg0 arg1 argn