开发者

Griffon command line arguments

How to use getStartupArgs()

Since 0.9.1 it seems you can read the command line arguments issue #245 with the getStartupArgs() method (documentation)

But I do know how to use it, I'开发者_如何学运维ve put it in in all the Griffon lifecycle, Controller, Service, and I get the exception

org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: [LifeCycle|Controller|Service].getStartupArgs() is applicable for argument types: () values: []
Caused by: groovy.lang.MissingMethodException: No signature of method: [LifeCycle|Controller|Service].getStartupArgs() is applicable for argument types: () values: [

]


app.getStartupArgs()

That's the way you can read the arguments

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜