args4j 是一个让你很容易解析命令行参数的开源工具. 利用了Annotation. 功能是很强大的.
官方提到:
Why should I use it?
See my quick intro(http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html).
It makes the command line parsing very easy by using annotations.
You can generate the usage screen very easily.
You can generate HTML/XML that lists all options for your documentation.
Fully supports localization.
It is designed to parse javac like options (as opposed to GNU-style where ls -lR is considered to have two options l and R.)
It is licensed under the MIT license.
See my quick intro(http://weblogs.java.net/blog/kohsuke/archive/2005/05/parsing_command.html).
It makes the command line parsing very easy by using annotations.
You can generate the usage screen very easily.
You can generate HTML/XML that lists all options for your documentation.
Fully supports localization.
It is designed to parse javac like options (as opposed to GNU-style where ls -lR is considered to have two options l and R.)
It is licensed under the MIT license.
标签:
下一篇 DWR 1.1 RC1 发布