Improve CLI usage summary and fix typo
This commit is contained in:
1 parent
45d200a06d
commit
709e271051
2 files changed
+6
-6
No files matched your search
+2
-2
@@ -286,10 +286,10 @@ const minimistOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const usageSummary = `
|
const usageSummary = `
|
||||||
Usage: prettier [optionss] [path ...]
|
Usage: prettier [options] [file/glob ...]
|
||||||
|
|
||||||
By default, output is written to stdout.
|
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();
|
`.trim();
|
||||||
|
|
||||||
function dedent(str) {
|
function dedent(str) {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
exports[`show usage with --help 1`] = `
|
exports[`show usage with --help 1`] = `
|
||||||
"Usage: prettier [optionss] [path ...]
|
"Usage: prettier [options] [file/glob ...]
|
||||||
|
|
||||||
By default, output is written to stdout.
|
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:
|
Output options:
|
||||||
|
|
||||||
@@ -68,10 +68,10 @@ Other options:
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`throw error and show usage with something unexpected 1`] = `
|
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.
|
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:
|
Output options:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user