argv()
I can't seem to access argv() - any ideas what I'm doing wrong ? I'm running ubuntu/wsl2.
from sys import argv
let a = argv()
2 Replies
This just worked for me...
Testing with
mojo argv_test.mojo param1
gives the output...
Executable at [0] and params at [1] onwards...Perfect, thanks, I was trying to iterate 'a' like a n00b.