Closed ghost closed 5 years ago
This seems to be the case since out
is a reserved keyword.
template `--`*(key, val: untyped) =
## A shortcut for ``switch(astToStr(key), astToStr(val))``.
switch(astToStr(key), strip astToStr(val))
astToStr(path)
returns "path"
, while astToStr(out)
returns var
Yet it would be a very simple fix to consider out
specially here
In this task from a .nimble file
the
--out
template call is translated to a--var
option in the executed command string. Whenswitch "out", "tests/apitest"
is used instead, everything works fine.