Home | History | Annotate | Download | only in toolutil

Lines Matching refs:option

33             /* process an option */
34 UOption *option=NULL;
37 /* process a long option */
42 /* search for the option string */
46 option=options+j;
50 if(option==NULL) {
51 /* no option matches */
54 option->doesOccur=1;
56 if(option->hasArg!=UOPT_NO_ARG) {
57 /* parse the argument for the option, if any */
59 /* argument in the next argv[], and there is not an option in there */
60 option->value=argv[++i];
61 } else if(option->hasArg==UOPT_REQUIRES_ARG) {
70 /* search for the option letter */
74 option=options+j;
78 if(option==NULL) {
79 /* no option matches */
82 option->doesOccur=1;
84 if(option->hasArg!=UOPT_NO_ARG) {
85 /* parse the argument for the option, if any */
88 option->value=arg;
89 /* do not process the rest of this arg as option letters */
92 /* argument in the next argv[], and there is not an option in there */
93 option->value=argv[++i];
96 } else if(option->hasArg==UOPT_REQUIRES_ARG) {
102 /* get the next option letter */
103 option=NULL;
108 if(option!=0 && option->optionFn!=0 && option->optionFn(option->context, option)<0) {
109 /* the option function was called and returned an error */
116 /* move a non-option up in argv[] */