mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-11-16 06:28:32 -06:00
actually use param
This commit is contained in:
parent
31012dffbf
commit
e8e090c5b7
2 changed files with 2 additions and 1 deletions
|
@ -408,7 +408,7 @@ func addBuiltinFlags(cfg: var CliCfg) =
|
||||||
|
|
||||||
func parseCliBody(body: NimNode, name = "", root = false): CliCfg =
|
func parseCliBody(body: NimNode, name = "", root = false): CliCfg =
|
||||||
result.name = name
|
result.name = name
|
||||||
result.root = true
|
result.root = root
|
||||||
for call in body:
|
for call in body:
|
||||||
if call.kind notin [nnkCall, nnkCommand, nnkPrefix]:
|
if call.kind notin [nnkCall, nnkCommand, nnkPrefix]:
|
||||||
error "unexpected node kind: " & $call.kind
|
error "unexpected node kind: " & $call.kind
|
||||||
|
|
|
@ -45,6 +45,7 @@ hwylCli:
|
||||||
^[config]
|
^[config]
|
||||||
run:
|
run:
|
||||||
echo "hello from `example one` command!"
|
echo "hello from `example one` command!"
|
||||||
|
echo args
|
||||||
echo fmt"{color=}"
|
echo fmt"{color=}"
|
||||||
echo fmt"{verbose=}"
|
echo fmt"{verbose=}"
|
||||||
echo fmt"{config=}"
|
echo fmt"{config=}"
|
||||||
|
|
Loading…
Reference in a new issue