The --help text.
function usage() result(text) !! The `--help` text. character(len=:), allocatable :: text character, parameter :: nl = new_line('a') text = 'Usage: fformat [OPTIONS] PATH...'//nl// & nl// & 'Format free-form Fortran source files in place. A directory is searched recursively for'//nl// & 'Fortran files; "-" reads standard input and writes standard output.'//nl// & nl// & 'Formatting:'//nl// & ' -i, --indent N spaces per indentation level (default 4)'//nl// & ' --base-indent N columns added to every line, program units included (default 0)'//nl// & ' --indent-units indent the bodies of modules, submodules and programs'//nl// & ' --no-indent-procedures do not indent the bodies of subroutines and functions'//nl// & ' --indent-fypp indent the code inside fypp blocks (#:if, #:for, #:def, ...)'//nl// & ' and the fypp directive lines with it'//nl// & ' --continuation STYLE continuation lines: "align" with brackets and "=" (default),'//nl// & ' or "indent" by a fixed amount'//nl// & ' --continuation-indent N extra indentation of continuation lines (default 4)'//nl// & ' --no-indent-comments leave the indentation of comment lines unchanged'//nl// & ' --keep-column1-comments leave comment lines that start in column 1 there'//nl// & ' --comment-spacing N blanks before a comment at the end of a line, unless it is'//nl// & ' aligned with the comment on the line before or after'//nl// & ' -l, --line-length N maximum line length (default 132, 0 for no limit): longer code'//nl// & ' lines are split, and alignment uses less indentation'//nl// & ' rather than exceed it'//nl// & ' --no-split do not split long lines'//nl// & ' --sort-use sort each group of use statements by module name'//nl// & ' --sort-use-only sort the names in only: lists'//nl// & ' --relational STYLE spelling of relational operators: "symbols" (.lt. becomes <),'//nl// & ' "letters" (< becomes .lt.) or "keep" (default)'//nl// & ' --spaces RULE=MODE,... blanks around operators; MODE is add (at least one blank),'//nl// & ' remove or keep. RULE is one of assignment, keyword-args,'//nl// & ' pointer, declarations, relational, logical, plus-minus,'//nl// & ' mult-div, power, concat, comma, slice-colon, percent,'//nl// & ' control-paren, conditional, defined-operators, or all'//nl// & ' --case WHAT=MODE,... letter case; WHAT is keywords, operators, procedures'//nl// & ' (intrinsic), constants (of iso_fortran_env and iso_c_binding),'//nl// & ' types (kinds and exponents) or all, MODE is lower, upper or'//nl// & ' keep (default keep)'//nl// & ' --set KEY=VALUE any setting, as in a configuration file (e.g. spaces.comma=add)'//nl// & nl// & 'Files:'//nl// & ' --config FILE read settings from FILE instead of searching for one'//nl// & ' --no-config do not read configuration files'//nl// & ' --exclude PATTERN skip matching files and directories in searched directories'//nl// & ' (repeatable; hidden entries and "build" are skipped by default)'//nl// & ' --extensions LIST extensions of the files to format in searched directories'//nl// & ' (default f90,F90,f95,F95,f03,F03,f08,F08,f18,F18)'//nl// & nl// & 'Output:'//nl// & ' -s, --stdout write the results to standard output'//nl// & ' -d, --diff write the changes as a unified diff; change no files'//nl// & ' -c, --check change no files; exit with status 1 if a file would change'//nl// & ' -q, --quiet do not report warnings'//nl// & ' -h, --help show this help'//nl// & ' --version show the version'//nl// & nl// & 'Settings come from the defaults, then the nearest .fformat.toml (or an [extra.fformat]'//nl// & 'table in fpm.toml) in or above the file''s directory, then the command line.'//nl// & nl// & 'Formatter directives: a statement with a "!&" comment is left unchanged, and lines'//nl// & 'between "!&<" and "!&>" are left unchanged.'//nl// & nl// & 'Exit status: 0 on success, 1 if --check found files to format, 2 on errors.' end function usage