Skip to content

Commit 569b097

Browse files
committed
test(cli): Track help output
1 parent 3cdcc38 commit 569b097

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

crates/typos-cli/tests/cmd/help.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
bin.name = "typos"
2+
args = "--help"
3+
stdout = """
4+
Source Code Spelling Correction
5+
6+
Usage: typos [OPTIONS] [PATH]...
7+
8+
Arguments:
9+
[PATH]... Paths to check with `-` for stdin [default: .]
10+
11+
Options:
12+
-c, --config <CUSTOM_CONFIG> Custom config file
13+
--isolated Ignore implicit configuration files
14+
--diff Print a diff of what would change
15+
-w, --write-changes Write fixes out
16+
--files Debug: Print each file that would be spellchecked
17+
--file-types Debug: Print each file's type
18+
--identifiers Debug: Print each identifier that would be spellchecked
19+
--words Debug: Print each word that would be spellchecked
20+
--dump-config <DUMP_CONFIG> Write the current configuration to file with `-` for stdout
21+
--type-list Show all supported file types
22+
--format <FORMAT> [default: long] [possible values: silent, brief, long, json]
23+
-j, --threads <THREADS> The approximate number of threads to use [default: 0]
24+
--exclude <GLOB> Ignore files & directories matching the glob
25+
--hidden Search hidden files and directories
26+
--no-ignore Don't respect ignore files
27+
--no-ignore-dot Don't respect .ignore files
28+
--no-ignore-global Don't respect global ignore files
29+
--no-ignore-parent Don't respect ignore files in parent directories
30+
--no-ignore-vcs Don't respect ignore files in vcs directories
31+
--binary Search binary files
32+
--no-check-filenames Skip verifying spelling in file names
33+
--no-check-files Skip verifying spelling in files
34+
--no-unicode Only allow ASCII characters in identifiers
35+
--locale <LOCALE> [possible values: en, en-us, en-gb, en-ca, en-au]
36+
--color <WHEN> Controls when to use color [default: auto] [possible values: auto, always, never]
37+
-v, --verbose... More output per occurrence
38+
-q, --quiet... Less output per occurrence
39+
-h, --help Print help
40+
-V, --version Print version
41+
"""
42+
stderr = ""

0 commit comments

Comments
 (0)