- Discussion
- Useful Resources
- Quick Guide
- Help Example
- Usage Example
- GNU Parser
- Posix Parser
- Properties Option
- Argument Option
- Boolean Option
- Option Properties
- First Application
- Environment Setup
- Overview
- Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Apache Commons CLI - Option Properties
Option object is used to represent the Option passed to command pne program. Following are various properties that an Option object possess.
Sr.No | Name (Type) &s; Description |
---|---|
1 |
opt (String) Identification string of the Option. |
2 |
longOpt (String) Apas and more descriptive identification string. |
3 |
description (String) Description of the function of the option. |
4 |
required (boolean) Flag to check whether the option must appear on the command pne. |
5 |
arg (boolean) Flag to check whether the option takes an argument. |
6 |
args (boolean) Flag to check whether the option takes more than one argument. |
7 |
optionalArg (boolean) Flag to check whether the option s argument is optional. |
8 |
argName (String) Name of the argument value for the usage statement. |
9 |
valueSeparator (char) The character value used to sppt the argument string. |
10 |
type (Object) Argument type. |
11 |
value (String) Option value. |
12 |
values (String[]) Values of the option. |