dune-format-dune-file - Man Page

Format dune files

Synopsis

dune format-dune-file [--dune-version=VERSION] [OPTION]ā€¦ [FILE]

Description

dune format-dune-file reads a dune file and outputs a formatted version. This is a low-level command, meant to implement editor support for example. To reformat a dune project, see the "Automatic formatting" section in the manual.

Arguments

FILE

Path to the dune file to parse.

Options

--dune-version=VERSION (absent=3.6)

Which version of Dune language to use.

Common Options

--help[=FMT] (default=auto)

Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.

--version

Show version information.

Exit Status

format-dune-file exits with the following status:

0

on success.

123

on indiscriminate errors reported on standard error.

124

on command line parsing errors.

125

on unexpected internal errors (bugs).

See Also

dune(1)

Info

Dune n/a Dune Manual