cairo-vm-go icon indicating copy to clipboard operation
cairo-vm-go copied to clipboard

Pass arguments to `main` through cli

Open cicr99 opened this issue 4 months ago • 0 comments

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)

cicr99 avatar Oct 07 '24 07:10 cicr99