def env.check
import shake@0.7.0.0/src/cli.bend as Cliimport Base
1745# a failed parse as it is; a successful one checked for env values outside
1746# their choices
1747def env.check(
1748 app: Cli,
1749 +vars: List<&2, Var>,
1750 got: Result<&2, &2, ParseErr, Matched>
1751) -> Result<&2, &2, ParseErr, Matched>:
1752 match got:
1753 case Fail{ee}:
1754 Fail{ee}
1755 case Done{+mm}:
1756 env.check.ok(app, vars, mm)