Cli.scope_can_take: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2986-2990 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2986&end_line=2990 import Base def scope_can_take(scope: Scope, count: Nat) -> Bool: match scope: case Scope{path, Spec{keys, args, slots, variadic, subs, has_sub, external, needs_sub, version, digit_short, inherit}}: Bool.or(Nat.is_lt(count, List.length(&2, ArgInfo, slots)), variadic) 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.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ArgInfo https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Scope https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Spec