def opt
import shake@0.7.0.0/src/cli.bend as Cliimport Base
150# a valued option
151def opt( # noqa: L001 a builder: its result is the Arg or Sub it names, nothing to state
152 +name: String,
153 short: Maybe<&2, String>,
154 long: Maybe<&2, String>,
155 +help: String,
156 required: Bool,
157 default: Maybe<&2, String>,
158 choices: List<&2, String>
159) -> Arg:
160 Arg{name, short, long, Opt{}, help, required, Fallback{None{}, default}, choices}