def needs_sub

cli@0.2.0.0 · cli.bend:2235

import cli@0.2.0.0/cli.bend as Cli
import Base

2235# A command that cannot complete without a subcommand (§8.4).
2236def needs_sub(+items: List<&2, Item>) -> Bool:
2237  Bool.and(has_sub_item(items),
2238    Bool.and(Bool.not(has_sub_optional(items)),
2239      Bool.not(has_external(items))))

Uses (8)

Used by (5)