def long_help

shake@0.7.0.0 · src/cli.bend:752

import shake@0.7.0.0/src/cli.bend as Cli
import Base

752# whether an unknown long option is a request for help: a bare `--help`,
753# with no `=` value, before any positional of the current command is bound
754def long_help(+name: String, val: Maybe<&2, String>, seen: Bool) -> Bool:
755  match val:
756    case None{}:
757      Bool.and(String.eq(name, "help"), Bool.not(seen))
758    case Some{_v}:
759      False{}

Uses (6)

Used by (1)