def needs_sub
import cli@0.2.0.0/cli.bend as Cliimport 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))))