Assuming that that input is from the command line, you can use the inbuilt 
commandLineParams() instead of manually parsing it (example in my notes: 
[https://scripter.co/notes/nim/#command-line-parameters)](https://scripter.co/notes/nim/#command-line-parameters\)).

Though, I use the **cligen** package from Nimble for my CLI parsing needs in 
general for much more CLI arg and switch parsing and auto doc support. 

Reply via email to