Skip to content

Commit 1b2ba3b

Browse files
MahmoodKhalil57claudefengmk2
authored
fix(help): replace stale --no-type-check example in vp check help (#875)
## Summary - The `--no-type-check` flag was removed from `vp check` in #739, but the help examples section still referenced it - Replace with `--no-lint` which is a valid flag Fixes #879 One-line change in `crates/vite_global_cli/src/help.rs`. ## Context The Options section was correctly cleaned up in #739, but the Examples block ~18 lines below it was missed: ```diff - vp check --no-type-check src/index.ts + vp check --no-lint src/index.ts ``` --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: MK <fengmk2@gmail.com>
1 parent 75e5d49 commit 1b2ba3b

3 files changed

Lines changed: 66 additions & 5 deletions

File tree

crates/vite_global_cli/src/help.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,7 @@ fn delegated_help_doc(command: &str) -> Option<HelpDoc> {
764764
),
765765
section_lines(
766766
"Examples",
767-
vec![
768-
" vp check",
769-
" vp check --fix",
770-
" vp check --no-type-check src/index.ts",
771-
],
767+
vec![" vp check", " vp check --fix", " vp check --no-lint src/index.ts"],
772768
),
773769
],
774770
documentation_url: documentation_url_for_command_path(&["check"]),
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
> vp check -h
2+
VITE+ - The Unified Toolchain for the Web
3+
4+
Usage: vp check [OPTIONS] [PATHS]...
5+
6+
Run format, lint, and type checks.
7+
8+
Options:
9+
--fix Auto-fix format and lint issues
10+
--no-fmt Skip format check
11+
--no-lint Skip lint check
12+
-h, --help Print help
13+
14+
Examples:
15+
vp check
16+
vp check --fix
17+
vp check --no-lint src/index.ts
18+
19+
Documentation: https://viteplus.dev/guide/check
20+
21+
22+
> vp check --help
23+
VITE+ - The Unified Toolchain for the Web
24+
25+
Usage: vp check [OPTIONS] [PATHS]...
26+
27+
Run format, lint, and type checks.
28+
29+
Options:
30+
--fix Auto-fix format and lint issues
31+
--no-fmt Skip format check
32+
--no-lint Skip lint check
33+
-h, --help Print help
34+
35+
Examples:
36+
vp check
37+
vp check --fix
38+
vp check --no-lint src/index.ts
39+
40+
Documentation: https://viteplus.dev/guide/check
41+
42+
43+
> vp help check
44+
VITE+ - The Unified Toolchain for the Web
45+
46+
Usage: vp check [OPTIONS] [PATHS]...
47+
48+
Run format, lint, and type checks.
49+
50+
Options:
51+
--fix Auto-fix format and lint issues
52+
--no-fmt Skip format check
53+
--no-lint Skip lint check
54+
-h, --help Print help
55+
56+
Examples:
57+
vp check
58+
vp check --fix
59+
vp check --no-lint src/index.ts
60+
61+
Documentation: https://viteplus.dev/guide/check
62+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"commands": ["vp check -h", "vp check --help", "vp help check"]
3+
}

0 commit comments

Comments
 (0)