Access Command Line arguments
How Can I access Command line arguments in mojo like we do in python using sys:
Trying the same in mojo:
Yeilds the following error:
error: 'argv' expects 0 input parameters, but 1 was specified
print(sys.argv[1])
2 Replies
Simple fix, you’ll need to add () to indicate a function call in your mojo code