Pass arguments to main
through cli
#670
Labels
Difficulty: intermediate
Requires some skill but you will get help
Duration: few days
Will take a few days and might need feedback from several people
enhancement
New feature or request
needs discussion
Discuss solution before start implementing it
It's possible to define
main
function in Cairo 1, such that it receives arguments, so we want to add this functionality as well and the possibility to run it from the cli. For that we'll need to:1- Add the option to the run command. It's important to define here the best way to pass the arguments so that it's easy to parse them after. Perhaps something similar to this, but we can separate it by commas instead, or any other suggestion (this is up for discussion)
2- Process these arguments in the runner while preparing the entry point and add the necessary instructions before the bytecode of the function to allocate the corresponding memory. (see here for reference)
The text was updated successfully, but these errors were encountered: