Cli.env.kind: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 1584-1597 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=1584&end_line=1597 import Base # the default an env value gives an argument of this kind: a flag is set # unless the value turns it off; every other kind takes the value def env.kind(kk: ArgKind, +vv: String) -> Maybe<&2, String>: match kk: case Flag{}: Bool.pick(Maybe<&2, String>, env.off(vv), None{}, Some{"true"}) case Opt{}: Some{vv} case Many{}: Some{vv} case Pos{}: Some{vv} case Rest{}: Some{vv} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=ArgKind https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=env.off