use the new parser by default

you can force the old parser with the command line flag
--force-old-config-parser-v4.4-only (which will be present in v4.4 only,
as the name suggests)
This commit is contained in:
Michael Stapelberg
2012-10-08 13:26:42 +02:00
parent 2738f13798
commit 20c0fa7cfb
5 changed files with 28 additions and 7 deletions

View File

@ -269,6 +269,7 @@ int main(int argc, char *argv[]) {
{"get_socketpath", no_argument, 0, 0},
{"fake_outputs", required_argument, 0, 0},
{"fake-outputs", required_argument, 0, 0},
{"force-old-config-parser-v4.4-only", no_argument, 0, 0},
{0, 0, 0, 0}
};
int option_index = 0, opt;
@ -372,6 +373,10 @@ int main(int argc, char *argv[]) {
LOG("Initializing fake outputs: %s\n", optarg);
fake_outputs = sstrdup(optarg);
break;
} else if (strcmp(long_options[option_index].name, "force-old-config-parser-v4.4-only") == 0) {
LOG("FORCING OLD CONFIG PARSER!\n");
force_old_config_parser = true;
break;
}
/* fall-through */
default: