I'm having a really good first impression with Nim, it's a surprisingly interesting language. But some stuff I'm used to do are really cryptic, such as passing an argument when invoking an executable from the command line.
All I want is.
./<nimExecutable> $Arg01
How to do this? I read the documentation and got "tainted string" and such. I wasn't able to make it work.
Thanks! Bruno Rodrigues
Hello and welcome to the Nim (yes, it's not capitalized :P) community :)
It's not cryptic at all - for example, you can use https://nim-lang.org/docs/os.html#parseCmdLine%2Cstring or paramCount together with paramStr :)
Thank you all!!
Best regards, Bruno Rodrigues