X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=parse-options.c;h=f0098eb8ea7eed27d8a67952481f043ce7c75d4a;hb=00fb2d25632191b89ac4144e1a6498470a4a1c9e;hp=503ab5d500c8ca2fe30f50601717979e752b9254;hpb=7b51c33b376d22195dba1c4e067180164fd35dbf;p=git.git diff --git a/parse-options.c b/parse-options.c index 503ab5d50..f0098eb8e 100644 --- a/parse-options.c +++ b/parse-options.c @@ -83,7 +83,7 @@ static int get_value(struct parse_opt_ctx_t *p, *(int *)opt->value &= ~opt->defval; return 0; - case OPTION_BOOLEAN: + case OPTION_COUNTUP: *(int *)opt->value = unset ? 0 : *(int *)opt->value + 1; return 0; @@ -319,7 +319,7 @@ static void parse_options_check(const struct option *opts) err |= optbug(opts, "uses feature " "not supported for dashless options"); switch (opts->type) { - case OPTION_BOOLEAN: + case OPTION_COUNTUP: case OPTION_BIT: case OPTION_NEGBIT: case OPTION_SET_INT: