为什么在使用grails帮助功能时会发生这种情况?
nobody@nobody-desktop:~$ grails help create-app
Welcome to Grails 1.3.2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/nobody/Downloads/grails-1.3.2
Base Directory: /home/nobody
Resolving dependencies...
Dependencies resolved in 2454ms.
Running script /home/nobody/Downloads/grails-1.3.2/scripts/Help_.groovy
Environment set to development
grails create-app -- Creates a Grails application for the given name
Usage (optionals marked with *):
grails [environment]* create-app
nobody@nobody-desktop:~$
我的计算机上有一些配置搞砸了吗? 现在应该不需要2.5秒来获取帮助输出吗?
答案 0 :(得分:1)
这是样板grails启动输出:
Welcome to Grails 1.3.2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/nobody/Downloads/grails-1.3.2
Base Directory: /home/nobody
Resolving dependencies...
Dependencies resolved in 2454ms.
这是Grails的输出,表明它找到了一个与你执行的命令相匹配的脚本(即help-> Help_.groovy)
Running script /home/nobody/Downloads/grails-1.3.2/scripts/Help_.groovy
Environment set to development
这是create-app帮助的实际输出:
grails create-app -- Creates a Grails application for the given name
Usage (optionals marked with *):
grails [environment]* create-app