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)
case ARGP_KEY_ARG:
if (arg[0] == '+')
{
data->handler ('+', arg+1, data->closure);
data->handler (ARG_FOLDER, arg, data->closure);
break;
}
return ARGP_ERR_UNKNOWN;
......