From 56531712095e931919789f6c033aa6aec01ba4ab Mon Sep 17 00:00:00 2001 From: goodale Date: Wed, 14 Nov 2001 09:51:06 +0000 Subject: Adding missing values y,n,t,f,true and false to allowed values checked for in the default for booleans. This should now be consistent with what the flesh allows and the docs say. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2464 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/sbin/parameter_parser.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl index c918c5ad..70ce34d6 100644 --- a/lib/sbin/parameter_parser.pl +++ b/lib/sbin/parameter_parser.pl @@ -435,7 +435,7 @@ sub CheckParameterDefault # Check that boolean default is correct if ($parameter_db{"\U$thorn $variable\E type"} =~ /BOOLEAN/) { - if ($default !~ m:^yes|no|1|0$:i) + if ($default !~ m:^yes|no|y|n|1|0|t|f|true|false$:i) { $message = "Default ($default) for boolean incorrect for $variable in $thorn"; &CST_error(0,$message,"",__LINE__,__FILE__); -- cgit v1.2.3