From 75f8015b5976657a0dd04e5da1601096a891ca87 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 21 Apr 2015 19:47:36 -0400 Subject: [PATCH] share/man: Update man for `nitpretty` Fixes #1130 Signed-off-by: Alexandre Terrasa --- share/man/nitpretty.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/share/man/nitpretty.md b/share/man/nitpretty.md index 0864629..2a023e5 100644 --- a/share/man/nitpretty.md +++ b/share/man/nitpretty.md @@ -25,6 +25,22 @@ nitpretty [*options*]... FILE `--check` : 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 + +`--inline-do` +: Force do keyword on the same line as the method signature + +`--skip-empty` +: 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. + # SPECIFICATION The specification of the pretty printing is described here. -- 1.7.9.5