mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Fix a small typo in proto.cc
Also add long-forms "yes" and "no" as valid options
This commit is contained in:
@@ -141,11 +141,13 @@ void setProtoFieldFromString(ProtoField& protoField, const std::string& value)
|
|||||||
static const std::map<std::string, bool> boolvalues = {
|
static const std::map<std::string, bool> boolvalues = {
|
||||||
{ "false", false },
|
{ "false", false },
|
||||||
{ "f", false },
|
{ "f", false },
|
||||||
|
{ "no", false },
|
||||||
{ "n", false },
|
{ "n", false },
|
||||||
{ "0", false },
|
{ "0", false },
|
||||||
{ "true", true },
|
{ "true", true },
|
||||||
{ "t", true },
|
{ "t", true },
|
||||||
{ "n", true },
|
{ "yes", true },
|
||||||
|
{ "y", true },
|
||||||
{ "1", true },
|
{ "1", true },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user