diff --git a/crates/vite_global_cli/src/help.rs b/crates/vite_global_cli/src/help.rs index a12a9bffa8..88d01f3873 100644 --- a/crates/vite_global_cli/src/help.rs +++ b/crates/vite_global_cli/src/help.rs @@ -764,11 +764,7 @@ fn delegated_help_doc(command: &str) -> Option { ), section_lines( "Examples", - vec![ - " vp check", - " vp check --fix", - " vp check --no-type-check src/index.ts", - ], + vec![" vp check", " vp check --fix", " vp check --no-lint src/index.ts"], ), ], documentation_url: documentation_url_for_command_path(&["check"]), diff --git a/packages/cli/snap-tests-global/command-check-help/snap.txt b/packages/cli/snap-tests-global/command-check-help/snap.txt new file mode 100644 index 0000000000..acfb446b24 --- /dev/null +++ b/packages/cli/snap-tests-global/command-check-help/snap.txt @@ -0,0 +1,62 @@ +> vp check -h +VITE+ - The Unified Toolchain for the Web + +Usage: vp check [OPTIONS] [PATHS]... + +Run format, lint, and type checks. + +Options: + --fix Auto-fix format and lint issues + --no-fmt Skip format check + --no-lint Skip lint check + -h, --help Print help + +Examples: + vp check + vp check --fix + vp check --no-lint src/index.ts + +Documentation: https://viteplus.dev/guide/check + + +> vp check --help +VITE+ - The Unified Toolchain for the Web + +Usage: vp check [OPTIONS] [PATHS]... + +Run format, lint, and type checks. + +Options: + --fix Auto-fix format and lint issues + --no-fmt Skip format check + --no-lint Skip lint check + -h, --help Print help + +Examples: + vp check + vp check --fix + vp check --no-lint src/index.ts + +Documentation: https://viteplus.dev/guide/check + + +> vp help check +VITE+ - The Unified Toolchain for the Web + +Usage: vp check [OPTIONS] [PATHS]... + +Run format, lint, and type checks. + +Options: + --fix Auto-fix format and lint issues + --no-fmt Skip format check + --no-lint Skip lint check + -h, --help Print help + +Examples: + vp check + vp check --fix + vp check --no-lint src/index.ts + +Documentation: https://viteplus.dev/guide/check + diff --git a/packages/cli/snap-tests-global/command-check-help/steps.json b/packages/cli/snap-tests-global/command-check-help/steps.json new file mode 100644 index 0000000000..9278048f58 --- /dev/null +++ b/packages/cli/snap-tests-global/command-check-help/steps.json @@ -0,0 +1,3 @@ +{ + "commands": ["vp check -h", "vp check --help", "vp help check"] +}