dav/optparser.c

changeset 209
d24761f1e07c
parent 199
f448fc8c9191
child 212
01e80c7cfe96
equal deleted inserted replaced
208:1fb26aca5093 209:d24761f1e07c
149 cmd_args_free(a); 149 cmd_args_free(a);
150 return NULL; 150 return NULL;
151 } 151 }
152 break; 152 break;
153 } 153 }
154 case 'L': {
155 if(!option) {
156 option = "lock";
157 optchar = 'L';
158 } else {
159 fprintf(
160 stderr,
161 "Missing argument for option -%c\n",
162 optchar);
163 cmd_args_free(a);
164 return NULL;
165 }
166 break;
167 }
154 } 168 }
155 } 169 }
156 } else if(option) { 170 } else if(option) {
157 ucx_map_cstr_put(a->options, option, arg); 171 ucx_map_cstr_put(a->options, option, arg);
158 option = NULL; 172 option = NULL;

mercurial