def parse_env

shake@0.7.0.0 · main.bend:181

import shake@0.7.0.0/main.bend as Shake
import Base
import shake@0.7.0.0/src/cli.bend as S

181# argv against a program spec, with `vars`, name and value pairs, for the env
182# vars: an argument the words leave unbound falls back to its env var's value
183# when it is set and not empty, then to its default
184def parse_env(
185  +spec: S.Cli,
186  words: List<&2, String>,
187  +vars: List<&2, S.Var>
188) -> Result<&2, &2, S.ParseErr, S.Matched>:
189  S.parse_env(spec, words, vars)

Uses (8)

Used by (0)

No other definition uses this definition.