How do I pass command line arguments to a nimble task? For example, say I have the task
task mytask, "my task":
echo &"my task {args}"
When I run
nimble mytask --foo --bar
I would like nimble to output
mytask --foo --bar
or something like that.
from nimble documentation (i.e. github's README.md):
commandLineParams is available in
std/os. For your example:Update:
Setting up a new nimble project with the above code added and running:
you will actually find that it prints a nim sequence with ALL arguments and not only the runtime flags. For example on Windows and anonymizing specific folder names:
So in order to get only
--fooand--baryou need to select arguments aftermytaskNote: we probably should fix nimble docs about that.