diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-11-14 09:51:06 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-11-14 09:51:06 +0000 |
commit | 56531712095e931919789f6c033aa6aec01ba4ab (patch) | |
tree | 156d2bb5b91e177a2aaf28a3507be20869e11ea5 | |
parent | 9455d4c4148b3087517d739bf6539921ca04b921 (diff) |
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
-rw-r--r-- | lib/sbin/parameter_parser.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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__); |