0

如何使用 getStartupArgs()

从 0.9.1 开始,您似乎可以使用 getStartupArgs() 方法(文档)阅读命令行参数问题 #245

但我确实知道如何使用它,我已经将它放入了所有 Griffon 生命周期、控制器、服务中,但我得到了例外

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: [

]

4

1 回答 1

0

app.getStartupArgs()

这就是你可以阅读论点的方式

于 2011-01-09T01:22:49.883 回答