Skip to content

Commit 479d1fd

Browse files
committed
fix(cli): remove extra newline in help output to prevent TTY hang
1 parent 9a5ccb1 commit 479d1fd

File tree

2 files changed

+0
-2
lines changed
  • crates/vite_global_cli/src
  • packages/cli/snap-tests-global/cli-helper-message

2 files changed

+0
-2
lines changed

crates/vite_global_cli/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ async fn main() -> ExitCode {
340340
if matches!(e.kind(), ErrorKind::DisplayHelp | ErrorKind::DisplayVersion) {
341341
if e.kind() == ErrorKind::DisplayHelp {
342342
println!("{}", vite_shared::header::vite_plus_header());
343-
println!();
344343
}
345344
e.print().ok();
346345
ExitCode::SUCCESS

packages/cli/snap-tests-global/cli-helper-message/snap.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
> vp -h # show help message
22
VITE+ - The Unified Toolchain for the Web
33

4-
54
Usage: vp [COMMAND]
65

76
Start:

0 commit comments

Comments
 (0)