Java命令行参数解析框架 - Climax

jopen 11年前

Climax是一个Java命令行参数解析框架并拥有以下功能特性:

  • 两种定义模式解析命令行参数:
    • Reflective interface definition: useful for implementing less code as possible (Similar to the JewelCli library) (See example).
    • Procedural definition: useful for avoiding use of reflection for performance reasons (See example).
    </li>
  • 命令行选项可以定义成以下任意类型:
    • POSIX options (See example)
    • GNU short long options (See example)
    • GNU long options (See example)
    • </ul> </li>
    • Options and non-option arguments can be undocumented and/or deprecated.
    • Options and non-option arguments can be provided with default arguments (See example).
    • Option arguments and non-option arguments can be validated and parsed using default and custom logic that can provide user-friendly error messages (See example).
    • Option arguments for an option and related non-option arguments can be provided separately or provided together as a list using a defined argument separator.
    • The command line program's version option is automatically provided when providing the version information (See example).
    • The command line program's help information and any of its elements can be completely customized (See example).
    • </ul>

      项目主页:http://www.open-open.com/lib/view/home/1357005792135