Skip to content

Commit 4c6ed97

Browse files
committed
fix(cli): document -C in the local CLI help
1 parent 7a5ddd8 commit 4c6ed97

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/cli_helper_message/snapshots/cli_helper_message_local.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Package Manager Commands:
3030
install Install all dependencies, or add packages if package names are provided
3131
3232
Options:
33+
-C <DIR> Run as if vp was started in <DIR> instead of the current working directory
3334
-h, --help Print help
3435
```
3536

crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/vp_help/snapshots/help.local.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ Package Manager Commands:
3030
install Install all dependencies, or add packages if package names are provided
3131
3232
Options:
33+
-C <DIR> Run as if vp was started in <DIR> instead of the current working directory
3334
-h, --help Print help
3435
```

packages/cli/binding/src/cli/help.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ pub(super) fn print_help() {
201201
{bold}install{reset} Install all dependencies, or add packages if package names are provided
202202
203203
Options:
204+
-C <DIR> Run as if vp was started in <DIR> instead of the current working directory
204205
-h, --help Print help"
205206
);
206207
}

packages/cli/snap-tests/command-helper/snap.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Package Manager Commands:
2222
install Install all dependencies, or add packages if package names are provided
2323

2424
Options:
25+
-C <DIR> Run as if vp was started in <DIR> instead of the current working directory
2526
-h, --help Print help
2627

2728
> vp pack -h # pack help message

packages/cli/snap-tests/command-vp-alias/snap.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Package Manager Commands:
2222
install Install all dependencies, or add packages if package names are provided
2323

2424
Options:
25+
-C <DIR> Run as if vp was started in <DIR> instead of the current working directory
2526
-h, --help Print help
2627

2728
> vp run -h # vp run should show help

0 commit comments

Comments
 (0)