def fish_shape
import cli@0.2.0.0/cli.bend as Cliimport Base
7095def fish_shape(stop: Stop) -> List<&2, String>:
7096 match stop:
7097 case Stop{k, words, opts, builtins, subs, slots}:
7098 +has = Bool.not(List.is_empty(&2, Entry, subs))
7099 +found = variadic(slots)
7100 fish_shape_arm(Bool.or(has, Maybe.is_some(&2, Slot, found)), k, has,
7101 found)