def event_inherited

cli@0.2.0.0 · cli.bend:3028

import cli@0.2.0.0/cli.bend as Cli
import Base

3028# An arg's hits from before the scan enters a subcommand stay only when the
3029# scope being left passes the arg down as a global (SPEC 8.4); operands,
3030# entries, help and version stay.
3031def event_inherited(found: Maybe<&2, String>,
3032    +globals: List<&2, SpecItem>) -> Bool:
3033  match found:
3034    case None{}: True{}
3035    case Some{id}:
3036      Maybe.is_some(&2, ArgInfo, find_spec_info(globals, id, None{}))

Uses (8)

Used by (1)