(parse_opt): Call the handler with ARG_FOLDER key if argument starts with +.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment