Skip to content

Commit 95d7170

Browse files
committed
fix(cli): disable header display in CLI argument parsing to prevent TTY hang
1 parent 09210c6 commit 95d7170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/vite_global_cli/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ async fn main() -> ExitCode {
322322
}
323323

324324
// Parse CLI arguments (using custom help formatting)
325-
let parse_result = try_parse_args_from(normalized_args);
325+
let parse_result =
326+
try_parse_args_from_with_options(normalized_args, RenderOptions { show_header: false });
326327

327328
// Spawn background upgrade check for eligible commands
328329
let upgrade_handle = match &parse_result {

0 commit comments

Comments
 (0)