actually use param

This commit is contained in:
Daylin Morgan 2024-11-10 16:19:44 -06:00
parent 31012dffbf
commit e8e090c5b7
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 2 additions and 1 deletions

View file

@ -408,7 +408,7 @@ func addBuiltinFlags(cfg: var CliCfg) =
func parseCliBody(body: NimNode, name = "", root = false): CliCfg =
result.name = name
result.root = true
result.root = root
for call in body:
if call.kind notin [nnkCall, nnkCommand, nnkPrefix]:
error "unexpected node kind: " & $call.kind

View file

@ -45,6 +45,7 @@ hwylCli:
^[config]
run:
echo "hello from `example one` command!"
echo args
echo fmt"{color=}"
echo fmt"{verbose=}"
echo fmt"{config=}"