From 08c28ddeaf75be9be7853168607a9d65a8288d2a Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Mon, 14 Apr 2025 17:09:29 +0200 Subject: [PATCH] router: format: add newline at the end Without this newline running commands with missing arguments, e.g. ``` proxmox-backup-client backup ``` will print their usage string without a newline at the end, which is costing me my sanity. As per commit d872eb9d7eba ("router: cli: rework newline handling for doc and help output"), usage shouldn't contain trailing new lines and this in principle should not print double new lines. Signed-off-by: Maximiliano Sandoval --- proxmox-router/src/cli/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-router/src/cli/format.rs b/proxmox-router/src/cli/format.rs index 95448aa9..e8ebe41f 100644 --- a/proxmox-router/src/cli/format.rs +++ b/proxmox-router/src/cli/format.rs @@ -279,7 +279,7 @@ pub(crate) fn print_simple_usage_error_do<'cli>( &[], global_options_iter, ); - eprint!("Error: {}\nUsage: {}", err_msg, usage); + eprintln!("Error: {}\nUsage: {}", err_msg, usage); } /// Print command usage for nested commands to ``stderr``.