|
17 | 17 | <document> |
18 | 18 |
|
19 | 19 | <properties> |
20 | | - <title></title> |
| 20 | + <title>Introduction</title> |
21 | 21 | <author email="commons-dev@jakarta.apache.org">commons-dev</author> |
22 | 22 | </properties> |
23 | 23 |
|
24 | 24 | <body> |
25 | | - |
26 | | - <section name="CLI : Command Line Interface"> |
27 | | - |
| 25 | + <section name="Jakarta Commons CLI"> |
28 | 26 | <p> |
29 | | - The CLI library provides a simple and easy to use API for working |
30 | | - with the command line arguments and options. |
| 27 | + The Jakarta Commons CLI library provides an API for processing command |
| 28 | + line interfaces. |
31 | 29 | </p> |
32 | 30 | <p> |
33 | | - CLI is based on ideas and code from |
| 31 | + CLI1 was formed by the merger of ideas and code from three different |
| 32 | + libraries and allows most simple interfaces to be modelled. CLI1 |
| 33 | + became increasingly difficult to maintain and develop further and so |
| 34 | + CLI2 has been developed with the goals of clearer responsibilities and |
| 35 | + being more flexible. The intention is that CLI2 should be able to |
| 36 | + model a far greater selection of interfaces and do so more completely, |
| 37 | + validating as much as possible. |
| 38 | + </p> |
| 39 | + <p> |
| 40 | + The redesigned CLI2 is rooted in the <code>org.apache.commons.cli2</code> |
| 41 | + package and the distribution retains the <code>org.apache.commons.cli</code> |
| 42 | + package so that the upgrade doesn't break old code. The CLI1 package |
| 43 | + should be regarded as deprecated to encourage the transition to the |
| 44 | + more flexible CLI2 framework but minor bug fixes and patches may be |
| 45 | + accepted to ensure that CLI1 based applications continue to function as |
| 46 | + expected. |
| 47 | + </p> |
| 48 | + <p> |
| 49 | + The rest of the documentation is split into the followin three sections: |
34 | 50 | <ul> |
35 | | - <li>werken.opt by Bob Mcwhirter</li> |
36 | | - <li>The cli package in Avalon Excalibur by Peter Donald</li> |
37 | | - <li>Optz by John Keyes</li> |
| 51 | + <li><a href="manual/index.html">CLI2</a> - a reference manual for version 2</li> |
| 52 | + <li><a href="introduction.html">CLI1</a> - documentation for version 1 </li> |
| 53 | + <li><a href="examples/index.html">Examples</a> - a selection of worked examples demonstrating CLI2 features</li> |
38 | 54 | </ul> |
39 | 55 | </p> |
40 | | - |
41 | 56 | </section> |
42 | | - |
43 | 57 | </body> |
44 | | - |
| 58 | + |
45 | 59 | </document> |
0 commit comments