#import <coptpsr.h>
Public Member Functions | |
| (id) | - init |
| Initialize instance of COptPsr class. | |
| (void) | - dealloc |
| Release resource for the object. | |
| (NSString *) | - appName |
| Get application name. | |
| (void) | - addOpt: |
| Add option to parser. | |
| (void) | - addHelpOpt |
| Add '--help' option to parser. | |
| (void) | - addUsageOpt |
| Add '--usage' option to parser. | |
| (uint_t) | - optNum |
| Get number of options. | |
| (BOOL) | - parse:and:withErrorMessage: |
| Start parsing the command line. | |
| (CList *) | - argList |
| Get list of arguments of command line. | |
Protected Attributes | |
| CList * | opt_list |
| CList * | arg_list |
| NSString * | app_name |
| COpt * | opt_help |
| COpt * | opt_usage |
|
|
Add '--help' option to parser.
|
|
|
Add option to parser.
|
|
|
Add '--usage' option to parser.
|
|
|
Get application name.
|
|
|
Get list of arguments of command line.
|
|
|
Release resource for the object.
|
|
|
Initialize instance of COptPsr class.
|
|
|
Get number of options.
|
|
||||||||||||||||
|
Start parsing the command line.
|
|
|
Name of application. It is given after parse() method |
|
|
List of arguments. This is result of parsing. |
|
|
"help" option |
|
|
List of options given by addOpt() method |
|
|
"usage" option |
1.4.6