From 372ba3c6446834df394c9314ddd2a443fdacc60b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 6 Nov 2024 23:14:43 -0600 Subject: [PATCH] add default for subcommands --- src/hwylterm/hwylcli.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwylterm/hwylcli.nim b/src/hwylterm/hwylcli.nim index d6b8914..6bb9fa1 100644 --- a/src/hwylterm/hwylcli.nim +++ b/src/hwylterm/hwylcli.nim @@ -444,7 +444,7 @@ func subCmdsArray(cfg: CliCfg): NimNode = result = newTree(nnkBracket) for s in cfg.subcommands: let cmd = newLit(s.subName) - let desc = s.desc + let desc = s.desc or newLit("") result.add quote do: (`cmd`, `desc`)