mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-11-16 06:28:32 -06:00
remove erroneous debugecho
This commit is contained in:
parent
2489be03d3
commit
713c98c13f
1 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,6 @@ func newHwylCliHelp*(
|
||||||
result.cmd = cmd
|
result.cmd = cmd
|
||||||
result.desc = dedent(desc).strip()
|
result.desc = dedent(desc).strip()
|
||||||
result.subcmds = subcmds.mapIt((it.name,it.desc.strip().dedent().strip().splitlines()[0]))
|
result.subcmds = subcmds.mapIt((it.name,it.desc.strip().dedent().strip().splitlines()[0]))
|
||||||
debugecho result.subcmds
|
|
||||||
result.usage = dedent(usage).strip()
|
result.usage = dedent(usage).strip()
|
||||||
result.flags = @flags
|
result.flags = @flags
|
||||||
result.styles = styles
|
result.styles = styles
|
||||||
|
@ -148,9 +147,11 @@ type
|
||||||
required*: seq[string]
|
required*: seq[string]
|
||||||
globalFlags*: seq[CliFlag]
|
globalFlags*: seq[CliFlag]
|
||||||
|
|
||||||
func `?`(n: NimNode) =
|
{.push hint[XDeclaredButNotUsed]:off .}
|
||||||
|
func peekNode(n: NimNode) =
|
||||||
## for debugging macros
|
## for debugging macros
|
||||||
debugEcho treeRepr n
|
debugEcho treeRepr n
|
||||||
|
{.pop.}
|
||||||
|
|
||||||
# TODO: do i need this?
|
# TODO: do i need this?
|
||||||
func newCliFlag(): CliFlag =
|
func newCliFlag(): CliFlag =
|
||||||
|
|
Loading…
Reference in a new issue