Skip to main content
Log in

mojo format

Formats Mojo source files.

Synopsis

mojo format [options] <sources...>
mojo format [options] <sources...>

Description

Formats the given set of Mojo sources using a Mojo-specific lint tool.

Options

Format options

--line-length <INTEGER>, -l <INTEGER>

Sets the max character line length. Default is 80.

Diagnostic options

--quiet, -q

Disables non-error messages.

Common options

--help, -h

Displays help information.

Was this page helpful?