def opt
import shake@0.7.0.0/main.bend as Shakeimport Base
import shake@0.7.0.0/src/cli.bend as S
80# a valued option
81def opt( # noqa: L001 a builder: its result is the Arg or Sub it names, nothing to state
82 +name: String,
83 short: Maybe<&2, String>,
84 long: Maybe<&2, String>,
85 +help: String,
86 required: Bool,
87 default: Maybe<&2, String>,
88 choices: List<&2, String>
89) -> S.Arg:
90 S.opt(name, short, long, help, required, default, choices)