Commit ac4d2786 ac4d278658fa5812790c6f3f138b7cd3b5a404ad by Sergey Poznyakoff

(parse_opt): Call the handler with ARG_FOLDER key if argument starts with +.

1 parent fedafd6e
...@@ -38,7 +38,7 @@ parse_opt (int key, char *arg, struct argp_state *state) ...@@ -38,7 +38,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
38 case ARGP_KEY_ARG: 38 case ARGP_KEY_ARG:
39 if (arg[0] == '+') 39 if (arg[0] == '+')
40 { 40 {
41 data->handler ('+', arg+1, data->closure); 41 data->handler (ARG_FOLDER, arg, data->closure);
42 break; 42 break;
43 } 43 }
44 return ARGP_ERR_UNKNOWN; 44 return ARGP_ERR_UNKNOWN;
......