Java命令行參數解析框架 - Climax

jopen 11年前發布 | 27K 次閱讀 Climax Java開發

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).
  • 命令行選項可以定義成以下任意類型:
  • 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).

項目主頁:http://www.baiduhome.net/lib/view/home/1357005792135

     本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
     轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
     本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!