Commit 1ee84ac1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Allow "true" and "false" as settings for booleans



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3312 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f4437359
...@@ -122,12 +122,16 @@ tweak_generic_bool(struct cli *cli, volatile unsigned *dest, const char *arg) ...@@ -122,12 +122,16 @@ tweak_generic_bool(struct cli *cli, volatile unsigned *dest, const char *arg)
*dest = 0; *dest = 0;
else if (!strcasecmp(arg, "no")) else if (!strcasecmp(arg, "no"))
*dest = 0; *dest = 0;
else if (!strcasecmp(arg, "false"))
*dest = 0;
else if (!strcasecmp(arg, "on")) else if (!strcasecmp(arg, "on"))
*dest = 1; *dest = 1;
else if (!strcasecmp(arg, "enable")) else if (!strcasecmp(arg, "enable"))
*dest = 1; *dest = 1;
else if (!strcasecmp(arg, "yes")) else if (!strcasecmp(arg, "yes"))
*dest = 1; *dest = 1;
else if (!strcasecmp(arg, "true"))
*dest = 1;
else { else {
cli_out(cli, "use \"on\" or \"off\"\n"); cli_out(cli, "use \"on\" or \"off\"\n");
cli_result(cli, CLIS_PARAM); cli_result(cli, CLIS_PARAM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment