hwylterm/tests/cli/clis/enumFlag.nim
2025-01-23 17:43:32 -06:00

17 lines
269 B
Nim

import std/[strformat]
import hwylterm, hwylterm/hwylcli
type
Color = enum
red, blue, green
# TODO: color should be a required flag by default?
hwylCli:
name "enumFlag"
flags:
color:
T Color
run:
echo fmt"{color=}"
assert args.len == 0