mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Merge pull request #2790 from DevOrc/master
add emit flag documentation
This commit is contained in:
commit
9038da6df0
17
README.md
17
README.md
@ -216,6 +216,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
|
||||
|
Loading…
Reference in New Issue
Block a user