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 d872eb9d7e ("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 <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2025-04-14 17:09:29 +02:00 committed by Wolfgang Bumiller
parent 550ebbed7c
commit 08c28ddeaf

View File

@ -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``.