set default type as bool not string

This commit is contained in:
Daylin Morgan 2024-11-11 13:47:38 -06:00
parent 292bddd59f
commit c0611a728c
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -245,7 +245,7 @@ func parseCliFlag(n: NimNode): CliFlag =
if result.ident == nil:
result.ident = result.name.ident
if result.typeNode == nil:
result.typeNode = ident"string"
result.typeNode = ident"bool"
# TODO: change how this works?
func parseCliFlags(cfg: var CliCfg, node: NimNode) =