dapphub/dapptools

Normalize values used to represent true with boolean-esque env vars

开放

#810 创建于 2021年9月22日

 (1 条评论) (4 个反应) (0 位负责人)Haskell (323 个派生)batch import
good first issue

仓库指标

星标
 (2,125 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Right now env vars that accept boolean-esque values (like DAPP_TEST_FFI, HEVM_RPC, and DAPP_BUILD_OPTIMIZE) each require slightly different values to represent true.

Sometimes 1 means true, sometimes yes means true, sometimes any non 0 value means true, and sometimes the variable being set at all means true!

Ideally all boolean-esque env vars would only accept one of these values to mean true, which would make using them a lot less confusing :p

贡献者指南