Cli.scope_builtin_known: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2955-2965 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2955&end_line=2965 import Base def scope_builtin_known(scope: Scope, +token: String) -> Bool: match scope: case Scope{path, Spec{keys, args, slots, variadic, subs, has_sub, external, needs_sub, version, digit_short, inherit}}: +name = first_option_name(token) Bool.or(String.eq(name, "-h"), Bool.or(String.eq(name, "--help"), Bool.and(List.is_empty(&2, String, path), Bool.and(version, Bool.or(String.eq(name, "-V"), String.eq(name, "--version")))))) Uses (9): 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.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq 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 https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=first_option_name