fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.21k stars 41 forks source link

Allow main function with arguments #37

Closed fenhl closed 2 years ago

fenhl commented 2 years ago

This changes the check for whether the code contains a main function to match main functions with arguments, which can be useful for parsing command-line parameters with paw.

fornwall commented 2 years ago

Thanks! This will be out in a v0.18.0 update shortly.

fornwall commented 2 years ago

Update: Version 0.18.0 has now been published.