Improve readme CLI usage example (#910)

- Use double quotes for cmd.exe support. See #761.
- Remove redundant example and merge it into the previous.
This commit is contained in:
Simon Lydell authored and Christopher Chedeau committed 2017-03-06 03:45:16 -08:00
1 parent 4dde054bb3
commit 25bbe1accb
1 file changed
+3 -5
+3 -5
View File
@@ -120,13 +120,11 @@ prettier [opts] [filename ...]
In practice, this may look something like:
```bash
prettier --single-quote --trailing-comma es5 --write '{app,__{tests,mocks}__}/**/*.js'
prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js"
```
For easier cross-platform usage, prettier has built-in glob support:
```bash
prettier --write "src/**/*.js" "bin/*.js"
```
(Don't forget the quotes around the globs! The quotes make sure that prettier
expands the globs rather than your shell, for cross-platform usage.)
In the future we will have better support for formatting whole projects.