def color_want

cli@0.2.0.0 · cli.bend:5027

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

5027def color_want(hyphen: Bool, +token: String) -> Prescan:
5028  match hyphen:
5029    case False{}: ColorSeek{Some{token}}
5030    case True{}:
5031      color_seek(String.eq(token, "--"), String.eq(token, "--color"),
5032        String.starts_with(token, "--color="), token, Some{""})

Uses (7)

Used by (1)