Improve CLI usage summary and fix typo

This commit is contained in:
Simon Lydell authored and Ika committed 2017-09-13 18:21:04 +08:00
1 parent 45d200a06d
commit 709e271051
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -286,10 +286,10 @@ const minimistOptions = {
};
const usageSummary = `
Usage: prettier [optionss] [path ...]
Usage: prettier [options] [file/glob ...]
By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no paths are given.
Stdin is read if it is piped to Prettier and no files are given.
`.trim();
function dedent(str) {
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`show usage with --help 1`] = `
"Usage: prettier [optionss] [path ...]
"Usage: prettier [options] [file/glob ...]
By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no paths are given.
Stdin is read if it is piped to Prettier and no files are given.
Output options:
@@ -68,10 +68,10 @@ Other options:
`;
exports[`throw error and show usage with something unexpected 1`] = `
"Usage: prettier [optionss] [path ...]
"Usage: prettier [options] [file/glob ...]
By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no paths are given.
Stdin is read if it is piped to Prettier and no files are given.
Output options: