From 713c98c13f2ddea1de4004b988948ea016db163b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 7 Nov 2024 10:55:03 -0600 Subject: [PATCH] remove erroneous debugecho --- src/hwylterm/hwylcli.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hwylterm/hwylcli.nim b/src/hwylterm/hwylcli.nim index 21b8b3d..e9cfa5a 100644 --- a/src/hwylterm/hwylcli.nim +++ b/src/hwylterm/hwylcli.nim @@ -42,7 +42,6 @@ func newHwylCliHelp*( result.cmd = cmd result.desc = dedent(desc).strip() result.subcmds = subcmds.mapIt((it.name,it.desc.strip().dedent().strip().splitlines()[0])) - debugecho result.subcmds result.usage = dedent(usage).strip() result.flags = @flags result.styles = styles @@ -148,9 +147,11 @@ type required*: seq[string] globalFlags*: seq[CliFlag] -func `?`(n: NimNode) = +{.push hint[XDeclaredButNotUsed]:off .} +func peekNode(n: NimNode) = ## for debugging macros debugEcho treeRepr n +{.pop.} # TODO: do i need this? func newCliFlag(): CliFlag =