#include <Coconut/coptpsr.h>
#include <Coconut/ctext.h>
#include <stdlib.h>
#include <errno.h>
Defines | |
| #define | S_ASSERT(EXP, MSG) |
Enumerations | |
| enum | COptPsrResult { COPTPSR_RESULT_ONE_ARG_OPT, COPTPSR_RESULT_NO_ARG_OPT, COPTPSR_RESULT_UNKNOWN_OPT, COPTPSR_RESULT_STRING_ARG_REQUIRED, COPTPSR_RESULT_INT_ARG_REQUIRED } |
Functions | |
| id | nil () |
| void | release () |
| NSString * | app_name () |
| void | addOpt:appendObject:after: (id, COpt *, id opt, id, id opt_list, id, id CList,[appendObject] id, id opt,[after] id, id opt_list,) |
| void | help () |
| void | usage () |
| uint_t | num () |
| BOOL | parse:and:withErrorMessage: (id, int, id argc,[and] id, const char **, id argv,[withErrorMessage] id, BOOL, id withmsg, id, id NSString, id, id argstr,) |
| while (index< argc) | |
| if ([opt_help isGiven]) = [newtable parseCsv: csvtable] | |
| CList * | arg_list () |
Variables | |
| opt_help = opt_usage = nil | |
| app_name = nil | |
| return [super init] | |
| opt_usage | |
| COptPsrResult | oneres |
| const char * | param |
| int | index = 1 |
| return | TRUE |
|
|
Value: if(!(EXP)){ \ fprintf(stderr, "[%s] line %d: %s\n", __FILE__, __LINE__, MSG); \ } |
|
|
Parse result of method of COptPsr
|
|
|
Initial value: [[COpt alloc] initOptNoArg: '\0' longName: s_usage optDesc: s_desc] |
1.3.6