mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
test(cli): Track help output
This commit is contained in:
parent
3cdcc38848
commit
569b09780b
1 changed files with 42 additions and 0 deletions
42
crates/typos-cli/tests/cmd/help.toml
Normal file
42
crates/typos-cli/tests/cmd/help.toml
Normal file
|
@ -0,0 +1,42 @@
|
|||
bin.name = "typos"
|
||||
args = "--help"
|
||||
stdout = """
|
||||
Source Code Spelling Correction
|
||||
|
||||
Usage: typos [OPTIONS] [PATH]...
|
||||
|
||||
Arguments:
|
||||
[PATH]... Paths to check with `-` for stdin [default: .]
|
||||
|
||||
Options:
|
||||
-c, --config <CUSTOM_CONFIG> Custom config file
|
||||
--isolated Ignore implicit configuration files
|
||||
--diff Print a diff of what would change
|
||||
-w, --write-changes Write fixes out
|
||||
--files Debug: Print each file that would be spellchecked
|
||||
--file-types Debug: Print each file's type
|
||||
--identifiers Debug: Print each identifier that would be spellchecked
|
||||
--words Debug: Print each word that would be spellchecked
|
||||
--dump-config <DUMP_CONFIG> Write the current configuration to file with `-` for stdout
|
||||
--type-list Show all supported file types
|
||||
--format <FORMAT> [default: long] [possible values: silent, brief, long, json]
|
||||
-j, --threads <THREADS> The approximate number of threads to use [default: 0]
|
||||
--exclude <GLOB> Ignore files & directories matching the glob
|
||||
--hidden Search hidden files and directories
|
||||
--no-ignore Don't respect ignore files
|
||||
--no-ignore-dot Don't respect .ignore files
|
||||
--no-ignore-global Don't respect global ignore files
|
||||
--no-ignore-parent Don't respect ignore files in parent directories
|
||||
--no-ignore-vcs Don't respect ignore files in vcs directories
|
||||
--binary Search binary files
|
||||
--no-check-filenames Skip verifying spelling in file names
|
||||
--no-check-files Skip verifying spelling in files
|
||||
--no-unicode Only allow ASCII characters in identifiers
|
||||
--locale <LOCALE> [possible values: en, en-us, en-gb, en-ca, en-au]
|
||||
--color <WHEN> Controls when to use color [default: auto] [possible values: auto, always, never]
|
||||
-v, --verbose... More output per occurrence
|
||||
-q, --quiet... Less output per occurrence
|
||||
-h, --help Print help
|
||||
-V, --version Print version
|
||||
"""
|
||||
stderr = ""
|
Loading…
Reference in a new issue