hwylterm/tests/cli/clis/enumFlag.nim

18 lines
269 B
Nim
Raw Normal View History

2025-01-23 17:29:52 -06:00
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