mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-11-16 06:28:32 -06:00
add default for subcommands
This commit is contained in:
parent
a4e0f3fc7b
commit
372ba3c644
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ func subCmdsArray(cfg: CliCfg): NimNode =
|
||||||
result = newTree(nnkBracket)
|
result = newTree(nnkBracket)
|
||||||
for s in cfg.subcommands:
|
for s in cfg.subcommands:
|
||||||
let cmd = newLit(s.subName)
|
let cmd = newLit(s.subName)
|
||||||
let desc = s.desc
|
let desc = s.desc or newLit("")
|
||||||
result.add quote do:
|
result.add quote do:
|
||||||
(`cmd`, `desc`)
|
(`cmd`, `desc`)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue