X-Git-Url: http://nitlanguage.org diff --git a/share/man/nitpretty.md b/share/man/nitpretty.md index 571d4f2..629fe96 100644 --- a/share/man/nitpretty.md +++ b/share/man/nitpretty.md @@ -9,36 +9,42 @@ nitpretty [*options*]... FILE # OPTIONS ### `--dir` -Working directory (default is '.nitpretty') +Working directory (default is '.nitpretty'). ### `-o`, `--output` -Output name (default is pretty.nit) +Output name (default is pretty.nit). ### `--diff` -Show diff between source and output +Show diff between source and output. ### `--meld` -Show diff between source and output using meld +Show diff between source and output using meld. ### `--check` -Check format of Nit source files +Check format of Nit source files. This option creates a temporary pretty printed file then checks if the output of the diff command on the source file and the pretty printed one is empty. ### `--break-strings` -Break too long string literals +Break too long string literals. ### `--inline-do` -Force do keyword on the same line as the method signature +Force do keyword on the same line as the method signature. ### `--skip-empty` -Force formatting of empty lines +Force formatting of empty lines. By default empty lines are kept as they were typed in the file. When enabling this option, `nitpretty` will decide where to break lines and will put empty lines to separate properties and code blocks. +### `--line-width` +Maximum length of lines (use 0 to disable automatic line breaks). + +### `--no-inline` +Disable automatic one-liners. + # SPECIFICATION The specification of the pretty printing is described here.