Where do you put your "main" function in your projects?

That’s a possibility. Standalone Julia programs are not that widespread at this point, so there is no “standard” solution for running them.

You can provide a MyModule.main(args...) (note: we usually capitalize module names), and then have a run.jl which parses command line arguments and calls this function, if you want to run it from the shell.

6 Likes