summaryrefslogtreecommitdiffstats
path: root/src/env.rs
AgeCommit message (Collapse)Author
2020-09-03Interpret an env var as boolean false iff it is unsetDan Davison
If it is set to any value, including "" (and of course "false") then it is true. This matches the semantics which clap seems likely to adopt: https://github.com/clap-rs/clap/issues/1476#issuecomment-652344026
2020-09-03Hack: env var for boolean flagDan Davison
The proper way would be using env = "DELTA_NAVIGATE", but see https://github.com/clap-rs/clap/issues/1476 https://github.com/TeXitoi/structopt/issues/372 Doing it as in this commit probably has drawbacks, e.g. related to whether the argument is recorded as having been supplied.
2020-09-03Change variable nameDan Davison
2019-10-29Add env moduleDan Davison