From e133fc5106429de4f48272f14be72e24bd1b3236 Mon Sep 17 00:00:00 2001 From: DevOrc Date: Sat, 16 Jun 2018 16:12:21 -0400 Subject: [PATCH] add emit flag documentation --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 3d976e01f04b..597e9fb889bf 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,23 @@ See [Configurations.md](Configurations.md) for details. (Substitute `x86_64` by `i686` and `gnu` by `msvc` depending on which version of rustc was used to install rustfmt). +* You can change the way rustfmt emits the changes with the --emit flag: + + Example: + + ``` + cargo fmt --emit files + ``` + + Options: + + | Flag |Description| Nightly Only | + |:---:|:---:|:---:| + | files | overwrites output to files | No | + | stdout | writes output to stdout | No | + | coverage | displays how much of the input file was processed | Yes | + | checkstyle | emits in a checkstyle format | Yes | + ## License Rustfmt is distributed under the terms of both the MIT license and the