From c2d86ed60fd4fe4c05e1b22f83b7b4491857b062 Mon Sep 17 00:00:00 2001 From: Kyle McCullough Date: Fri, 23 Jun 2017 11:39:43 -0500 Subject: [PATCH] website: documentation for fmt -check flag --- website/docs/commands/fmt.html.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/docs/commands/fmt.html.markdown b/website/docs/commands/fmt.html.markdown index 96e2be19e..bc4fa887b 100644 --- a/website/docs/commands/fmt.html.markdown +++ b/website/docs/commands/fmt.html.markdown @@ -24,5 +24,7 @@ The command-line flags are all optional. The list of available flags are: * `-list=true` - List files whose formatting differs (disabled if using STDIN) * `-write=true` - Write result to source file instead of STDOUT (disabled if - using STDIN) + using STDIN or -check) * `-diff=false` - Display diffs of formatting changes +* `-check=false` - Check if the input is formatted. Exit status will be 0 if + all input is properly formatted and non-zero otherwise.