Add --stdin-filepath to website (#4513)

This commit is contained in:
Derek Kramer authored and Simon Lydell committed 2018-06-28 20:38:16 +02:00
1 parent 0b659b898d
commit 0ce40b197d
1 file changed
+17
+17
View File
@@ -115,3 +115,20 @@ Change the level of logging for the CLI. Valid options are:
- `log` (default)
- `debug`
- `silent`
## `--stdin-filepath`
A path to the file that the Prettier CLI will treat like stdin. For example:
_abc.css_
```css
.name { display: none; }
```
_shell_
```bash
$ cat abc.css | prettier --stdin-filepath abc.css
.name {
display: none;
}
```