Cli.short_of.val: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 272-280 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=272&end_line=280 import Base # the value glued after a short letter: what follows one `=` when the rest # starts with it (possibly empty, as `--name=` is), else the rest when there # is any def short_of.val(eq: Bool, +rest: String) -> Maybe<&2, String>: match eq: case True{}: Some{String.drop(rest, 1n)} case False{}: Bool.pick(Maybe<&2, String>, String.is_empty(rest), None{}, Some{rest}) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=Base/base.bend&name=String.drop https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty