Cli.needs_sub: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2235-2239 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2235&end_line=2239 import Base # A command that cannot complete without a subcommand (ยง8.4). def needs_sub(+items: List<&2, Item>) -> Bool: Bool.and(has_sub_item(items), Bool.and(Bool.not(has_sub_optional(items)), Bool.not(has_external(items)))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_external https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_sub_item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_sub_optional