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

[Feature] The input format to leo run is poorly documented, and error messages are confusing. #28516

Open
christian-oudard opened this issue Feb 25, 2025 · 0 comments
Labels
feature A new feature.

Comments

@christian-oudard
Copy link

christian-oudard commented Feb 25, 2025

πŸš€ Feature

Please improve the error messages in leo run.

The obvious syntax doesn't work:

$ leo run 2 2
Leo βœ… Compiled 'aleo_tutorial_4ca2101b.aleo' into Aleo instructions

Error [ECLI0377016]: Failed to parse the `run` command.
Error: error: invalid value '2' for '<FUNCTION>': Identifier must start with a letter

For more information, try '--help'.

It takes a while to find the actual syntax in documentation, and --help is not helpful.

leo run main 2u32 2u32
       Leo βœ… Compiled 'aleo_tutorial_4ca2101b.aleo' into Aleo instructions

β›“  Constraints

 β€’  'aleo_tutorial_4ca2101b.aleo/main' - 33 constraints (called 1 time)

➑️  Output

 β€’ 4u32

       Leo βœ… Finished 'aleo_tutorial_4ca2101b.aleo/main' (in "/home/christian/files/code/aleo_tutorial/aleo_tutorial_4ca2101b/build")
@christian-oudard christian-oudard added the feature A new feature. label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature.
Projects
None yet
Development

No branches or pull requests

1 participant