Skip to content

Commit 9d7a6ae

Browse files
committed
fix(cli): disable header display in CLI argument parsing to prevent TTY hang
1 parent b77d164 commit 9d7a6ae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/vite_global_cli/src/main.rs

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

322322
// Parse CLI arguments (using custom help formatting)
323-
let parse_result = try_parse_args_from(normalized_args);
323+
let parse_result =
324+
try_parse_args_from_with_options(normalized_args, RenderOptions { show_header: false });
324325

325326
// Spawn background upgrade check for eligible commands
326327
let upgrade_handle = match &parse_result {

0 commit comments

Comments
 (0)