From 0ce40b197d2e8e7435d839d3ced4ba9b384d0bcc Mon Sep 17 00:00:00 2001 From: Derek Kramer Date: Thu, 28 Jun 2018 12:38:16 -0600 Subject: [PATCH] Add `--stdin-filepath` to website (#4513) --- docs/cli.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index d2438a3ea..f56c818c4 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -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; +} +```