Usage: forc-fmt [OPTIONS]
Options:
-c
, --check
Run in 'check' mode.
0
if input is formatted correctly. - Exits with 1
and prints a diff if formatting is required. -p
, --path
<PATH>
Path to the project.
If not specified, current working directory will be used.
-f
, --file
<FILE>
Formats a single .sw file with the default settings. If not specified, current working directory will be formatted using a Forc.toml configuration
--experimental
<EXPERIMENTAL>
Comma separated list of all experimental features that will be enabled
[possible values: new_encoding, references, error_type, const_generics]
--no-experimental
<NO_EXPERIMENTAL>
Comma separated list of all experimental features that will be disabled
[possible values: new_encoding, references, error_type, const_generics]
-h
, --help
Print help (see a summary with '-h')
-V
, --version
Print version
EXAMPLES:
forc fmt --check
forc fmt -c
forc fmt --file {path}/src/main.sw
forc fmt -f {path}/src/main.sw
forc fmt --path {path}
forc fmt -p {path}