Call config_parse through the api struct in cli.

Replaces a call to kvz_config_parse with api->config_parse.
This commit is contained in:
Arttu Ylä-Outinen 2015-11-09 13:57:28 +02:00
parent 87ca9e1856
commit e42f1351f9

View file

@ -197,7 +197,7 @@ cmdline_opts_t* cmdline_opts_parse(const kvz_api *const api, int argc, char *arg
opts->seek = atoi(optarg); opts->seek = atoi(optarg);
} else if (!strcmp(name, "frames")) { } else if (!strcmp(name, "frames")) {
opts->frames = atoi(optarg); opts->frames = atoi(optarg);
} else if (!kvz_config_parse(opts->config, name, optarg)) { } else if (!api->config_parse(opts->config, name, optarg)) {
fprintf(stderr, "invalid argument: %s=%s\n", name, optarg); fprintf(stderr, "invalid argument: %s=%s\n", name, optarg);
ok = 0; ok = 0;
goto done; goto done;