Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass arguments to main through cli #670

Open
cicr99 opened this issue Oct 7, 2024 · 0 comments
Open

Pass arguments to main through cli #670

cicr99 opened this issue Oct 7, 2024 · 0 comments
Assignees
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

Comments

@cicr99
Copy link
Contributor

cicr99 commented Oct 7, 2024

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 cicr99 added enhancement New feature or request 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 needs discussion Discuss solution before start implementing it labels Oct 7, 2024
@cicr99 cicr99 self-assigned this Oct 7, 2024
@MaksymMalicki MaksymMalicki assigned MaksymMalicki and unassigned cicr99 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants