Commit af7a57cd af7a57cd99e588888bbf56cd163bcd80617540e5 by Sergey Poznyakoff

(parse_opt): Pass the argument to ARG_FOLDER without the leading '+'.

1 parent 019c60ec
...@@ -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_FOLDER, arg, data->closure); 41 data->handler (ARG_FOLDER, arg + 1, data->closure);
42 break; 42 break;
43 } 43 }
44 return ARGP_ERR_UNKNOWN; 44 return ARGP_ERR_UNKNOWN;
......