def looks_flag

shake@0.7.0.0 · src/cli.bend:219

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

219# whether a string is a flag token (`-` alone is not)
220def looks_flag(+ss: String) -> Bool:
221  Bool.and(String.starts_with(ss, "-"), Bool.not(String.eq(ss, "-")))

Uses (6)

Used by (1)