|
2 | 2 | <document> |
3 | 3 |
|
4 | 4 | <properties> |
5 | | - <author email="jbjk@mac.com">John Keyes</author> |
6 | | - <title>Option</title> |
| 5 | + <author email="john@integralsource.com">John Keyes</author> |
| 6 | + <title>Option Properties</title> |
7 | 7 | </properties> |
8 | 8 |
|
9 | 9 | <body> |
10 | 10 | <section name="Option Properties"> |
11 | 11 | <p> |
12 | | - The following are the properties of an <a href="apidocs/org/apache/commons/cli/Option.html">Option</a>. |
| 12 | + The following are the properties that each |
| 13 | + <a href="apidocs/org/apache/commons/cli/Options.html">Option</a> has. All of these |
| 14 | + can be set using the accessors or using the methods |
| 15 | + defined on the |
| 16 | + <a href="apidocs/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>. |
13 | 17 | </p> |
14 | 18 | <table> |
15 | 19 | <tr> |
|
18 | 22 | <th>Description</th> |
19 | 23 | </tr> |
20 | 24 | <tr> |
21 | | - <td>Opt</td> |
| 25 | + <td>opt</td> |
22 | 26 | <td>java.lang.String</td> |
23 | | - <td>the identification string</td> |
| 27 | + <td>the identification string of the Option.</td> |
24 | 28 | </tr> |
25 | 29 | <tr> |
26 | | - <td>LongOpt</td> |
| 30 | + <td>longOpt</td> |
27 | 31 | <td>java.lang.String</td> |
28 | 32 | <td>an alias and more descriptive identification string</td> |
29 | 33 | </tr> |
30 | 34 | <tr> |
31 | | - <td>Description</td> |
| 35 | + <td>description</td> |
32 | 36 | <td>java.lang.String</td> |
33 | 37 | <td>a description of the function of the option</td> |
34 | 38 | </tr> |
35 | 39 | <tr> |
36 | | - <td>Required</td> |
| 40 | + <td>required</td> |
37 | 41 | <td>boolean</td> |
38 | 42 | <td>a flag to say whether the option <b>must</b> appear on |
39 | 43 | the command line.</td> |
40 | 44 | </tr> |
41 | 45 | <tr> |
42 | | - <td>MultipleArgs</td> |
| 46 | + <td>multipleArgs</td> |
43 | 47 | <td>boolean</td> |
44 | 48 | <td>a flag to say whether the option takes multiple argument |
45 | 49 | values</td> |
46 | 50 | </tr> |
47 | 51 | <tr> |
48 | | - <td>Arg</td> |
| 52 | + <td>arg</td> |
49 | 53 | <td>boolean</td> |
50 | 54 | <td>a flag to say whether the option takes an argument</td> |
51 | 55 | </tr> |
52 | 56 | <tr> |
53 | | - <td>Type</td> |
| 57 | + <td>args</td> |
| 58 | + <td>boolean</td> |
| 59 | + <td>a flag to say whether the option takes more than one argument</td> |
| 60 | + </tr> |
| 61 | + <tr> |
| 62 | + <td>optionalArg</td> |
| 63 | + <td>boolean</td> |
| 64 | + <td>a flag to say whether the option's argument is optional</td> |
| 65 | + </tr> |
| 66 | + <tr> |
| 67 | + <td>argName</td> |
| 68 | + <td>java.lang.String</td> |
| 69 | + <td>the name of the argument value for the usage statement</td> |
| 70 | + </tr> |
| 71 | + <tr> |
| 72 | + <td>valueSeparator</td> |
| 73 | + <td>char</td> |
| 74 | + <td>the character value used to split the argument string, that |
| 75 | + is used in conjunction with multipleArgs e.g. |
| 76 | + if the separator is ',' and the argument string is 'a,b,c' then |
| 77 | + there are three argument values, 'a', 'b' and 'c'.</td> |
| 78 | + </tr> |
| 79 | + <tr> |
| 80 | + <td>type</td> |
54 | 81 | <td>java.lang.Object</td> |
55 | 82 | <td>the type of the argument</td> |
56 | 83 | </tr> |
57 | 84 | <tr> |
58 | | - <td>Value</td> |
| 85 | + <td>value</td> |
59 | 86 | <td>java.lang.String</td> |
60 | 87 | <td>the value of the option</td> |
61 | 88 | </tr> |
62 | 89 | <tr> |
63 | | - <td>Values</td> |
| 90 | + <td>values</td> |
64 | 91 | <td>java.lang.String[]</td> |
65 | 92 | <td>the values of the option</td> |
66 | 93 | </tr> |
|
0 commit comments