Skip to content

Commit

Permalink
GH-1251 Add additional allowed true/false alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jun 22, 2023
1 parent 9faefa2 commit 8fc11f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ void validate(boost::any& v,

if (s == "auto") {
v = boost::any(wasm_interface::vm_oc_enable::oc_auto);
} else if (s == "all" || s == "true" || s == "on") {
} else if (s == "all" || s == "true" || s == "on" || s == "yes" || s == "1") {
v = boost::any(wasm_interface::vm_oc_enable::oc_all);
} else if (s == "none" || s == "false" || s == "off") {
} else if (s == "none" || s == "false" || s == "off" || s == "no" || s == "0") {
v = boost::any(wasm_interface::vm_oc_enable::oc_none);
} else {
throw validation_error(validation_error::invalid_option_value);
Expand Down

0 comments on commit 8fc11f0

Please sign in to comment.