def hyphen_operand
import cli@0.2.0.0/cli.bend as Cliimport Base
3510# Whether a slot that takes hyphen values takes a dash token: no option in
3511# scope is named by it. The lookup runs only for such a slot, which a rest()
3512# slot is until it has its first value.
3513def hyphen_operand(hyphen: Bool, scope: Scope, token: String) -> Bool:
3514 match hyphen:
3515 case True{}: Bool.not(scope_any_option_known(scope, token))
3516 case False{}: False{}