mojo run
Builds and executes a Mojo file.
Synopsis
mojo run [options] <path>
Description
Compiles the Mojo file at the given path and immediately executes it. Another way to execute this command is to simply pass a file to mojo
. For example:
mojo hello.mojo
Options for this command itself, such as the ones listed below, must appear before the input file path
argument. Any command line arguments that appear after the Mojo source file path
are interpreted as arguments for that Mojo program.
Options
Compilation options
--no-optimization
, -O0
Disables compiler optimizations. This might reduce the amount of time it takes to